Solution
<?php if ($comments) : ?> <ol> <?php foreach ($comments as $comment) : ?> <li id="comment-<?php comment_ID() ?>" class='comment'> <!-- the comment data --> </li> <?php endforeach; ?> </ol> <?php endif; ?>
The code above is an ordinary comment check and loop. $comment is an array that holds all the comments ordered from oldest to newest. Using a built-in php function array_reverse() we can easily change the order to be from newest to oldest.
<?php if ($comments) : ?> <? $comments = array_reverse($comments); ?> <ol> <?php foreach ($comments as $comment) : ?> <li id="comment-<?php comment_ID() ?>" class='box2 commentItem <?=$authorClass?>'> <!-- the comment data --> </li> <?php endforeach; ?> </ol> <?php endif; ?>
And now we got our comments ordered from newest to oldest, with just one simple function.
Our WordPress themes
We have a few WordPress themes that we would like you to take a look at if you want.
check out the portfolio











This could really come in handy. I like the idea, and I might try it soon, over at my blog.
Thanks so much!
Where do i put this code??? so that the page order is reversed and shows newest to oldest???
thank you for your time
It differs from theme to theme but should be in comments.php, there you will find a similar code like the one above.