How to Display latest comment on top in WordPress

When comments are added to a WordPress post, they are arranged from the oldest to the newest by default. For example, let us look at this WordPress post. We have the oldest comment posted on July 3, 2015, at the top while the newest posted on February 21, 2018, at the time of writing this tutorial appears at the bottom. However, you can reverse this and have the comments showing with the newest at the top and the oldest at the bottom. In this post, I am going to show you how to have the newest comments displaying at the top.

Assuming that you have a WordPress website with comments on your posts, we are going to log in to the admin dashboard. While at the admin dashboard, navigate to the Settings option on the left hand side menu and select the Discussion option on the pop up menu as shown below;

Settings from the admin dashboard

This will take you to another page where you have Discussion Settings. Going to the second section of the settings, which is “Other Comment Settings”, we have “Comments should be displayed with the (Dropdown Menu) comments at the top of each page” at the bottom, as shown on the screenshot below;

Discussion settings

The default settings show the older comments at the top. To change this, click on the drop down menu and select newer.

Changing comment settings

After that, navigate to the bottom of the screen and click on the Save Changes button to save your changes.

Saving the changes

Going to one of my posts with two comments, we have the default discussion settings with the oldest comment at the top as shown on the screenshot below.

Post with default comment settings

However, after making the change as described in this post, here is what I have in the comment section;

Post with modified comment settings

That is how you can simply sort the comments from the newest to the oldest without using any plugin or touching any piece of code.

TheWphosting Staff

Leave a Comment