Created
October 28, 2015 01:53
-
-
Save reasonstousegenesis/5720c4580e6fe44cc94e to your computer and use it in GitHub Desktop.
Display the relative publish date after the content
This file contains 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 | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Display the relative publish date after the content | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/publish-date/ | |
*/ | |
add_filter( 'genesis_post_meta', 'rtug_publish_date_relative' ); | |
function rtug_publish_date_relative() { | |
return 'Published [post_date format="relative"]'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment