Home › Forums › Other › WordPress – Getting specific custom field value › Re: WordPress – Getting specific custom field value
October 27, 2011 at 5:21 pm
#89790
Member
Yeah, TheDoc is right. That should work just fine. If that doesn’t happen to work, you can use this inside the loop
$amount = get_post_meta(get_the_id(), 'amount', true);
if ($amount == 'Funded') {
// do something
}
?>