I have this select field with two options:
piklist('field', array(
'type' => 'select'
,'field' => 'yachts_fuel'
,'label' => 'Καύσιμο'
,'value' => 'option1'
,'attributes' => array(
'class' => 'text'
)
,'choices' => array(
'option1' => 'Πετρέλαιο'
,'option2' => 'Βενζίνη'
)
));
I want to show in the front end the value of ‘option1’ which is ‘Πετρέλαιο’. Using get_post_meta is returning the ‘option1’ and not the text ‘Πετρέλαιο’ that I want. How can I get that?
get_post_meta($post->ID, 'yachts_fuel', true ); is what I used.