• Hello,

    I have a WP site based one a theme Radcliffe.
    In this theme I have a comment counter in two places for one post: first in the top, just above post title and the second one in the very beginning of the comments section.

    My problem is, these two counters show different numbers.
    The bottom one works correctly, but the counter in the top of a post stops counting on number 2 and doesn’t show any larger digit (there is a few posts with larger number of comments and the top counter shows ‘two comments’ for each of them).

    Counters works in two ways.
    The bottom one (working good) is based on echo function:

    <?php echo count($wp_query->comments_by_type['comment']) . ' ';
    						echo _n( 'comment' , 'comments' , count($wp_query->comments_by_type['comment']), 'radcliffe' ); ?>

    The top counter (counting only to 2) uses comments_popup_link() function:

    <?php if ( comments_open() ) { echo '<span class="sep">/</span> '; comments_popup_link( '0 comments', '1 comment', '2 comments', '% comments', 'post-comments' ); } ?>

    I am nearly sure that these codes have not been modified since the installation of this theme.

    Could somebody please show me where is a bug there? Or how can I find it?

  • The topic ‘Problem with comments counting’ is closed to new replies.