Ready to get started?Download WordPress


[resolved] Comment count not working (1 post)

  1. thetiff
    Posted 3 years ago #

    Each of my entry that contains comments only shows "Comments". Instead, I want them to show the number of comments the entry has, ie "2 Comments".

    Here's my coding:

    if ( have_comments() ) {
    	/* Comment heading. */
    	$heading = sprintf( _n( '%1$s Comment', '%1$s Comments', get_comments_number(), 'ghostbird' ), number_format_i18n( get_comments_number() ) );

    And if it helps, my website is: http://tiffsbloggy.com

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic