Created
February 23, 2015 18:20
-
-
Save cdils/ab896ac40bcddc2e7893 to your computer and use it in GitHub Desktop.
Add latest post revision date to Genesis post info.
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 //remove this line | |
add_filter( 'genesis_post_info', 'cd_post_info_filter' ); | |
function cd_post_info_filter( $post_info ) { | |
if ( ! is_singular( 'post' ) ) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments]'; | |
$post_modified_info = '[post_modified_date before="<br />Last updated "]'; | |
return $post_info . $post_modified_info; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment