Sunday, June 9, 2013

Display multiple custom field values with the same custom field type

$beedroomsbefore = get_post_meta($post->ID, 'bedroomsbefore', false);

if ($beedroomsbefore) {
foreach ($bedroomsbefore as $bedroomsbefore) {
echo ''.get_the_title().'';
}
}

No comments:

Post a Comment