Reverse The WordPress Comments From Newest To Oldest

If you want to display your comment list from newest to oldest, here is a simple solution, find your functions.php page located in ../wp-content/themes/your-theme-name/ and add the following function:


function reverse_comments($comments,$id) {
$comments = array_reverse($comments);
return $comments;
}
add_filter('comments_array','reverse_comments',10,2);

Voila! Your WordPress comment list should now display from newest to oldest.

Related posts:

  1. Simple SEO For Your Blog Any serious blogger will tell you the importance of SEO...

5 Comments for "Reverse The WordPress Comments From Newest To Oldest"

  1. Great ! Thanks Again !

    Reply To This Comment

    Joe   —   September 16, 2011
  2. Yay! Thank you very much!!

    Reply To This Comment

    sheena   —   July 27, 2011
  3. estou testando para ver se vc usou esse sistema no site

    Reply To This Comment

    Teste   —   October 21, 2010
  4. thank you for this post, there’re not alot of people to who’ve added this to there help tutorials and it was so simple, worked like a charm.

    Now all the responses are from newest to oldest, thanks again :)
    .-= Johann´s last blog ..Hosting =-.

    Reply To This Comment

    Johann   —   April 22, 2010
  5. well, hi admin adn people nice forum indeed. how’s life? hope it’s introduce branch ;)

    Reply To This Comment

    cwxwwwxdfvwwxwx   —   December 24, 2008

Leave a Reply





Connect With Me

Check out my about.me profile!

Latest Testimonial

"Jon is very professional; quick response to all questions and emails, very clear communication, and excellent work with very quick turnaround..."
[ ...read more... ]

Matt — 3/6/12