Support » Your WordPress » Comments sorted by date

  • Hello!

    At my site: I was wondering how I could make new comments to be posted above the old ones… Because if you post a comment now it shows beneath a older one and thats not what I want. Because the newest comment needs to be the first one showing up…



Viewing 1 replies (of 1 total)
  • Ugly solution? Open the comments.php of your theme, search for following text:

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

    and replace it with

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

    Should do the trick 😉

Viewing 1 replies (of 1 total)
  • The topic ‘Comments sorted by date’ is closed to new replies.