Custom Field as Date won’t explode()
-
Hi there
having some issues with a custom field I have formatted as date (yyyy-mm-dd).
Now I would like to explode the value withexplode("-", $value)
but all I get are no values or array in the output.Here is the code I use, maybe someone can help?
$customdate = get_post_meta($post->ID, "date_value", true); list($day, $month, $year) = explode("-", $customdate);
After that I would like to echo with $day, etc. in the respective fields.
Thanks in advance for any suggestions on what I might be missing…
BR Marcel
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Custom Field as Date won’t explode()’ is closed to new replies.