Display wordpress comments in reverse order

By default, wordpress diaplays the most recen blog comments at the bottom. Wouldn't it be nice to display the most recent ones first? This is very hel...


By default, wordpress diaplays the most recen blog comments at the bottom. Wouldn’t it be nice to display the most recent ones first? This is very helpful if you have a blog post with hundres of comments. There are two ways to display the comments in reverse order.

If you enjoy experimenting with wordpress files then this method is for you.

1. Comments.php : Every theme has a comments.php file . simply replace the following code

<?php foreach ($comments as $comment) : ?>

with this one

<?php foreach (array_reverse($comments) as $comment) : ?>

If programming is not your cup of tea, then the below tip is for you.

2. WordPress plugin : If you are not interested in playing with your wordpress files then this plugin is for you. Simply install this plugin and activate to display comments in reverse order.

Incoming search terms for the article:

wordpress reverse order of comments, wordpress comments reverse order, comments in reverse order on wordpress blog, comment reverse order wordpress, wordpress comment reverse, wordpress display category reverse order, wordpress reverse comment, wordpress reverse order comments, wordpress reverse post order gadget, wordpress 3 comments, shoq wordpress comments in reverse order, reverse post order wordpress, reverse order of comments wordpress, reverse order comments wordpress 3 0, reverse comments order wordpress

Technorati Tags: , , , ,

Related posts:

  1. Find category ID in WordPress
  2. Liked this article? Read another similar article!
  3. 5 best sites to get free wordpress themes
  4. Spam 2.0
  5. What is Reverse Phone Lookups?

7 Responses to “Display wordpress comments in reverse order”

  1. Waleed says:

    This really great tip , I was looking in google how to do that and it leads me to your

    post .. I did not imagine its that easy .. thank you for this post

    [Reply]

  2. shoban says:

    Thanks for the comment Waleed.

    [Reply]

  3. richard says:

    Thanks for your post it helped me fix my comments to display how I wanted them too. From

    Most recent to earlier.

    Blessings

    [Reply]

  4. AssorsMub says:

    Очень понравился ваш блог! Подписался на rss. Буду регулярно читать.

    [Reply]

  5. про бабло забыли написать!!!!!!!!!
    Согласен, очень полезное сообщение

    [Reply]

  6. Timothy says:

    Thanks for the awesome tip… You rock!

    [Reply]

Leave a Reply