Created
January 31, 2015 08:26
-
-
Save rianrietveld/04d4d2600b5f7686cb45 to your computer and use it in GitHub Desktop.
Format ACF date for display
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 | |
function gameaccess_acf_date( $id, $field ) { | |
$meta_value = get_post_meta( $id , $field, true ); | |
echo date_i18n( 'F d, Y' , strtotime( $meta_value ) ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment