Skip to content

Instantly share code, notes, and snippets.

@GaryJones
Created January 31, 2012 01:42
Show Gist options
  • Save GaryJones/1708150 to your computer and use it in GitHub Desktop.
Save GaryJones/1708150 to your computer and use it in GitHub Desktop.
Change the Genesis comment count wording
<?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