Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

UK domains
being liquidated

digitaljunkyard.com
buy now

Help with FacePress plugin

Status
Not open for further replies.
Joined
Jun 11, 2010
Posts
205
Reaction score
0
Hi All,

I've got a site which I am using FacePress 2 on. Im trying to edit the plugin to pull a custom field from the post rather than the excerpt, so that the update will be sent as "TITLE - PRICE - URL"

The part I have changed is...

Code:
if (preg_match('%EXCERPT%',$ftstatus))
					{
						$postExcerpt = get_post_meta($postID, 'Price', true);
						$ftstatus = str_ireplace("%EXCERPT%", $postExcerpt, $ftstatus);
					}

but it doesnt work. I think the problem is with the $postID as if I hardcode that as an existing post ID it works, but I dont know how to get the current postID. I've tried several variations such as $postID, $post->ID, get_the_id but I just cant get it to work. I've asked the author on his blog but the comment has been approved (nearly 3 weeks ago).

Any advice will be much appreciated.

Cheers, Shane
 
Status
Not open for further replies.
Top Bottom