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...
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
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