Home › Forums › Other › WordPress – Getting specific custom field value › Re: WordPress – Getting specific custom field value
October 27, 2011 at 2:30 pm
#89773
Member
This might work, though I haven’t tried it:
$amount = get_post_meta($post->ID, 'amount', true);
if ($amount == 'Funded') {
// do something
}
?>
This is just a slightly modified version of one of the snippets available here: https://css-tricks.com/snippets/wordpress/using-custom-fields/