Support » Fixing WordPress » Show last N comments

  • Hello!
    I have a problem, as I need to show last 15 comments in my WP site and I can’t really do it neither with standard WP nor with any plugins.
    At the moment, I have
    “Break comments into pages with 15 top level comments per page and the LAST page displayed by default”
    “Comments should be displayed with the NEWER comments at the top of each page”

    Those two settings do have the trick, but because of the page breaking, if there are 16 comments, I get only 1 comments, because it’s page 2 now.

    Kind of really frustrating not to be able to show N last comments.
    Any help?
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @pozirk – You may need assistance from your current theme developer to ensure you can correctly and appropriately set the WP_Comment_Query being used by the theme (it may not be specified and could require some more in-depth custom code to properly integrate into your current theme).

    Have a look at the following arguments:
    count => true
    number => 15
    paged => 0

    Sets a counter to use 15 comments and turns off pagination (meaning you will never see more than 15 comments).


    Thread Starter pozirk


    Thank you for reply.
    I still think that “showing N recent comments” should be part of WordPress, as it’s really basic thing.

    @pozirk – At the moment, I would consider it more a plugin candidate although one that could be merged to core down the road if enough community support was behind it.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show last N comments’ is closed to new replies.