Domain Manage

Help with FacePress plugin

Discussion in 'Wordpress' started by shane8960, Jul 29, 2010.

Thread Status:
Not open for further replies.
  1. shane8960

    shane8960 Active Member

    Joined:
    Jun 2010
    Posts:
    207
    Likes Received:
    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
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
Thread Status:
Not open for further replies.

Share This Page