Last active
August 29, 2015 14:20
-
-
Save reasonstousegenesis/46e4c1198a366985f463 to your computer and use it in GitHub Desktop.
Output the 'last updated' date with extra 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. | |
/** | |
* Output the 'last updated' date with extra content | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/last-updated-date/ | |
*/ | |
add_filter( 'genesis_post_info', 'rtug_last_updated_date_before_after' ); | |
function rtug_last_updated_date_before_after() { | |
return '[post_modified_date before="Last updated " after="."]'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment