• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Nile Flores Media

Helping You Rock Out Your Website Like A Rockstar

  • Home
  • About
  • Blog
  • Portfolio
  • Hire Me
  • Resources
  • Contact
  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design
  • News
  • Podcast
You are here: Home » WordPress » How to Reverse WordPress Comments Order

How to Reverse WordPress Comments Order

By Nile Flores Leave a Comment


Ever want to know how to reverse WordPress comments order? By default, WordPress displays comments as first come, first serve, or in order received.

Why would anyone want to put newest comments first? Well, it might make it seem that the conversation is still going, especially if you have an old post that still has evergreen content (or content that has information that is true today.)

How to Reverse WordPress Comments Order

In order to get your most recent comments first, you’re going to have to play with your comments template in your theme’s files. Before editing, please make sure you back up your website.

1. Find your theme template’s comments.php file.

2. Open the comments.php file and look for the following code:

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

3. Add the following line before (above) the code listed in the previous step.

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

Save, and check your website to see if comments are now displaying in reverse order.


Filed Under: WordPress Tagged With: change comment order, reverse comment order, tutorial, wordpress tutorial

About Nile Flores

Nile is a 43-year old female from the greater St. Louis (Southern Illinois side) area. Nile is a mother of 1 son. She is also a web designer and developer, a graphic designer, and a public speaker, who exclusively designs and develops using WordPress. She also blogs at GoDaddy's Blog, Verpex Hosting's blog and her very personal sites, Pixelled and Nail Polish Happy.




Related posts:

How To Convert Drupal To WordPress

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Follow Me On:

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!




Try to be More Positive on Social Media

Note: You can click on image and view the video in a larger lightbox window.

Footer

The Blog

Lots of free information, tutorials, and more to help you bring your best foot forward with your website.

  • Blogging
  • WordPress
  • Social Media
  • SEO
  • Web Design

Get The Latest WordPress & Blogging Tips

Sign up for my newsletter, and also get my free ebook on 10 Reasons Why Your Website Isn't Converting, and How to Fix it!

Copyright © 2025 · · WordPress