Skip to content

Instantly share code, notes, and snippets.

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/0786ef90d98d35be7512 to your computer and use it in GitHub Desktop.
Save davechu/0786ef90d98d35be7512 to your computer and use it in GitHub Desktop.
In my test, this did work fine in conditionally overriding what Genesis Simple Edits was doing.
add_filter( 'genesis_post_info', 'dc_post_info_filter', 20 );
function dc_post_info_filter($post_info) {
if ( is_home() ) {
$var = do_shortcode('[post_comments zero="No Comments" one="1 Comment" more="% Comments"]');
}
return $post_info;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment