WordPress – Display the Recent Comment on The Top

Rearranging comments to show the most recent one on top is turning into another pattern that an ever increasing number of best bloggers are executing on their site. In the event that your blog has a considerable measure of client cooperation, at that point this alternative ought to be your decision on the grounds that regularly the current comments get covered on the last pages or at the exceptionally base. In this article we will demonstrate to you how you can improve your comments and show the latest one to finish everything.

Display the Recent Comment on The Top

There are tow method to do this:

1. Default Method

Using default method you have to go Setting -> Discussion and under the Other comment setting you will get the options, Comments should be display with the older comments at the top of each page. Now click on drop down menu and select Newer. After selecting Newer you have to click on the Save Changes Button at the bottom of the page to store your settings.


That’s it, using above method WordPress will now display most recent comments on the top.

2. Second Method

In some case your default method does not work then you can try below method. You have to edit your theme’s functions.php file or a site-specific plugin.

function wpb_reverse_comments($comments) {
return array_reverse($comments);
add_filter ('comments_array', 'wpb_reverse_comments');

Above code use the comments_array filter to reverse the show comments on your WordPress website.

That’s it, this is the second method I hope this article will be helpful to you.


Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at Look Linux Submit Article. Stay connected to Facebook.

About the author


Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.


Leave a Comment