Value of Drop Down box
-
Hi
Currently I am using this php code to display Text for a Custom Field with Name ‘years’ in a theme in wordpress, that works well
php echo get_post_meta($post->ID, ‘years’, true); (Including the php opening and closing tags)
But the problem I have is that if I want to change this from Text, to a Drop Down Box (a select2 type), with different values to choose from, I cannot find how to display the values correctly.
Any body has any idea of how to display correctly the value of a custom field froma Drop Down selec2 type ?
Thanks for any help on this
- The topic ‘Value of Drop Down box’ is closed to new replies.