WordPress by default displays the comments in the order they were entered. What this means is that the latest comments are always at the very bottom of the section. I like to have the latest comments shown first.

Here is a fix for it, a very simple one:

Open the comments.php file contained in the currently active theme directory

look for the following code

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

replace it with

<?php
$comments = array_reverse($comments, true);
foreach ($comments as $comment) :
?>

And that piece of code does all the magic.
The specification for array_reverse

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>