WordPress.org

Ready to get started?Download WordPress

Forums

sorting comments in reverse (3 posts)

  1. eydzhey
    Member
    Posted 6 years ago #

    how do you sort comments from latest on top to the oldest at the bottom? thanks in advance!

  2. robgod
    Member
    Posted 6 years ago #

    I'd like to know this too! Any answers anyone? I'm sure this is as easy as changing the SQL (adding "order by ... desc") but not sure where the SQL is.

  3. robgod
    Member
    Posted 6 years ago #

    OK, found it! There are 3 "Select" statements in the
    "wp-includes\comment-template.php" file - around line 290. I have changed all 3 to have " DESC" at the end. This will reverse the default (Ascending) sort order.

    PS. this is version 2.3.1

    Rob

Topic Closed

This topic has been closed to new replies.

About this Topic