Home > Blogs, Bookmarks, PhP, Web, Wordpress > Reverse Order in comments for WordPress Blog

Reverse Order in comments for WordPress Blog

January 24th, 2008 Leave a comment Go to comments

If you prefer a reverse ordering of comments do the next “hack”.
In file comments.php from your theme find line code:

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

and insert before, this code:

<?php $comments = array_reverse($comments, true); ?>

  1. July 23rd, 2009 at 14:16 | #1

    Once again: only a few lines of change and it will run. :-)

  2. February 13th, 2009 at 21:38 | #2

    That was absolutely TOO EASY lol :) )) Thanks so much for the quick fix – I tried a plugin that *cough* didn’t work … KUDOS!

  3. February 1st, 2009 at 16:48 | #3

    It appears you can’t reverse the ordering of comments, unless you are self-hosting. I have a wordpress.com blog – but it doesn’t let me change the code, that I can see. Any help for me out there? (thanks in advance!)

  4. March 10th, 2008 at 05:20 | #4

    BEAUTIFUL! Works great on my website. Thank you!

  5. January 24th, 2008 at 15:49 | #5

    Thank you for the post. I searched a way to change the ordering of my comments.

  1. No trackbacks yet.
GoCache - ByREV-Cache v1.0 - live served in : 0.154911 sec (gzip)