Created
January 31, 2012 01:42
-
-
Save GaryJones/1708150 to your computer and use it in GitHub Desktop.
Change the Genesis comment count wording
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
<?php | |
add_filter( 'genesis_post_meta', 'child_post_meta_filter' ); | |
/** | |
* Amend the post meta to change the wording for comments. | |
* | |
* @author Gary Jones | |
* @link http://code.garyjones.co.uk/change-comment-count/ | |
* | |
* @param string $post_meta HTML markup, likely with shortcodes. | |
* | |
* @return string | |
*/ | |
function child_post_meta_filter( $post_meta ) { | |
return '[post_comments zero="0 Comments" one="1 Comment" more="% Comments"]'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment