I've tried searching but haven't turned anything up, so apologies if I missed a previous question.
I have a checkbox field that allows people to choose multiple meal options (breakfast, lunch, supper, etc.) which maps to a custom_field "meal-options". How do I then output all the options they might choose? Right now my code just spits out the first one. I know I'm missing some sort of loop but not sure how to do it properly.
<h4>Meal Options Included</h4>
<p>
<?php $mealoptions = get_post_meta($post->ID,'meal-options', true);
if ($mealoptions == 'false') {
echo "Not at this time.";
} else {
echo get_post_meta($post->ID,'meal-options', true);
}
?>
</p>
This is obviously part of a larger custom post type file.