Created
July 14, 2014 17:37
-
-
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.
This file contains hidden or 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
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