• Hello,

    I’ve allready asked this question in the general forum a few days ago, but nobody answered.
    I’ll try here, because the problem is quite big and it’s important for me.

    I have a website based one a theme Radcliffe.
    There is 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 comments sum.
    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 ‘2 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.