Home / comment / Customize Comment Count Text
  • How to Customize Comment Count Text

    zero comments

    You can customize the text for displaying the number of comments inside the loop. This is just a simple template edit however it is extremely useful if you are creating a theme that is not a traditional theme or you wanted to inject a little bit of personality into the site.

    ( click code to copy )

    wordpress snippet : PHP

        echo get_comments_number_text( "No comments, yet", "One Lonely Comment", "% Happy Comments");

    ( WordPress codex functions, hooks, in this snippet. )

    comments_number, get_comments_number, get_comment, get_comments, _n,