Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

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.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom