Support » Requests and Feedback » Possible bug report number of comments set in Admin

  • richarduk


    I wonder if this is a bug.

    I notice that on my test site (my own, clean theme) which has a consistent number of test comments, setting different numbers of top level comments to display affects the number of comments shown in an odd way. Sometimes only a few comments are shown on the first page (less than set in Admin), sometimes the full quota.

    I can only guess that it’s something to do with the calculation of how many pages of comments to show e.g 10 top level comments divided by 3 top level comments a page, or 10 top level comments divided by 4 top level comments a page, etc.

    This happens regardless of whether or not it’s last comments first, newer comments at the top etc. – I’ve tried all variations.

    Changing the number of comments shown also affects whether or not previous and next page links are shown.

    For example, there might be ten top level comments, and in the Admin panel it might be set to show 3 top level comments and the next / previous links will appear.

    But setting the comments per page in the Admin panel to 4 might make the next / previous links disappear.

    For example, the following

    <div class="comment-navigation">
    <p class="comment-navigation comment-floatright"> <?php next_comments_link('Newer Comments') ?></p>
    <p class="comment-navigation comment-floatleft"><?php previous_comments_link('Older Comments') ?> </p>
    </div><!--Close comment-navigation-->

    might, for no apparent reason, suddenly show only this when viewing source:

    <div class="comment-navigation">
    <p class="comment-navigation comment-floatright"> </p>
    <p class="comment-navigation comment-floatleft"> </p>
    </div><!--Close comment-navigation-->

    Normally these things wouldn’t be noticeable in a reasonably busy site, but on my test site with a more or less fixed number of comments they are.

  • The topic ‘Possible bug report number of comments set in Admin’ is closed to new replies.