Created
April 21, 2015 13:18
-
-
Save tomhemsley/94ba5a950635c9bf9c85 to your computer and use it in GitHub Desktop.
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
/** | |
* Adds a {comment_count} template tag to Meta Slider Post Feed captions | |
*/ | |
function metaslider_comment_count($content) { | |
$content = str_replace( "{comment_count}", comments_number() , $content ); | |
return $content; | |
} | |
add_filter( "metaslider_post_feed_template", "metaslider_comment_count" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment