whiteorb
Member
Posted 1 year ago #
I'd like to pull specific values from the page's custom field. In this case it's a product model number. I've tried adding <?php the_meta(); ?> but it displays the name and the value. I've read the codex but have overwhelmed and confused myself.
And ideas on how to simply pull a value based on the name?
<?php echo get_post_meta($post->ID, "name", true); ?>
Used within the loop
whiteorb
Member
Posted 1 year ago #
Perfect thanks. Is it possible to seperate values with a colon or semi-colon or do I have to create a new field each time?
example: name=type
value=indoor, outdoor, daynight, network