Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress – Getting specific custom field value Re: WordPress – Getting specific custom field value

#89790
dhechler
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
}
?>