Created
September 30, 2013 20:48
-
-
Save brycejacobson/6770042 to your computer and use it in GitHub Desktop.
Get date from a WordPress Custom Field and alter its format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Get date from a WordPress Custom Field and alter its format. | |
$display_date = date('F d, Y', strtotime(get_post_meta($post->ID, "event_start_date", true))); | |
echo $display_date; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment