Skip to content

Instantly share code, notes, and snippets.

@davechu
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davechu/1503286edba4dab10285 to your computer and use it in GitHub Desktop.
Save davechu/1503286edba4dab10285 to your computer and use it in GitHub Desktop.
This can be used to show the "latest updater" instead of the original Post Author. Adjust additional text to taste. I added spaces to separate the name from other info.
add_filter( 'genesis_post_info', 'dc_post_info_filter' );
function dc_post_info_filter($post_info) {
$var = do_shortcode('[post_comments zero="No Comments" one="1 Comment" more="% Comments"]');
$post_info = 'Updated by ' . get_the_modified_author() . '&nbsp &nbsp &nbsp' . $var;
return $post_info;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment