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. Share your own thoughts and experience, accounts may be terminated for violations.
  • Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

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