Custom Fields to display keys as list
-
Ok, so am trying to make a recipe-friendly post type with a bunch of custom fields for things like ‘ingredients’. There are multiple ingredients, but how to get them to display as a *list*…I cannot figure out if my Loop code is correct and/or where to put the HTML within the php. Thanks…
<div id="ingreeds" style="background-color: red; padding: 20px;"> <ul class='ingredients'> <?php echo get_post_meta($post->ID, "wpcf-ingredients", true); ?></ul></div>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Fields to display keys as list’ is closed to new replies.