Display select field label rather than value
-
I have a select list labeled “Gender”.
Female|1
Male|2Using the following, I am able to pull the label into my loop.
<?php echo get_post_meta($post->ID,'gender',true) ?>However, that just delivers a number. How do I force it to deliver the label?
Thank you!
The topic ‘Display select field label rather than value’ is closed to new replies.