I have a plugin in Wordpress in wich i can make custom field like dropdown etc. Now I need to get the saved value from the dropdown.
I have this:
$vt_city = get_post_meta($cs_job_id, 'cs_post_loc_city', true);
But that displays it meta instead of the value like this: not_filled
And what I need it to show is: Not filled
How can I achieve such thing?
I can't see nothing about it in the doc, but you can use a regex at least
$clean_meta = preg_replace("/^(\w{1})([a-z]*)_([a-z]*)$/","$1$2 $3",$vt_city);