Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Reverse the order of Comments in Blogger - Display Newest to Oldest

Good evening my fellow readers, 

From past couple of months, I have been trying to make Blogger commenting system look cool 😎 and beautiful. I have also shared different tricks to customize blogger comment system. 

Today, I want to reverse the order of comments in blogger as I realized by default blogger displays oldest comments first and newest ones at the bottom.

I had couple of questions:

Can I change the order of comments in blogger? Can I display newer comments first and move old comments at the bottom? Do I need to write extra code of Javascript or manipulate with DOM?

Answer - Yes, it is possible 💪 to sort blogger comments from latest to oldest without writing a single line of Javascript.

Let me show you how.

Sorting Blogger comments from New to Old

Blogger provides some lines of code to display comments. If you open your theme HTML code, you can find this piece of code:

Or,

This line 👆simply loops through each comment for this post. To reverse the order of these comments you'll need a way to indicate you want to loop starting at the most recent comment and work your way through the older comments. But how? There is a way to do it natively in Blogger using reverse HTML tag. 

Add reverse='1' to above code. 

Reverse='1' reverses the default order of comments in blogger and displays latest to oldest.

Or,

That is all. Now your comments are sorted from new to old. Happy Blogging! ✊

Any Questions? Leave a comment below. And do you want me to write more guides on customizing blogger commenting system? If yes, let me know.

Some cool articles to check next - 

How To Customize Comments Avatar Image In Blogger - TwistBlogg - Premium Blogger Tutorials and Widgets
Blogger allows you to customize default comment avatar image with simple css. This article will guide you through that.
Change "0 Comment" or "Post a Comment" Message in Blogger - TwistBlogg - Premium Blogger Tutorials and Widgets
Change those boring "0 Comment" or "Post a Comment" messages in blogger above the comment box with attractive ones using HTML & CSS Style.


This post first appeared on TwistBlogger, please read the originial post: here

Share the post

Reverse the order of Comments in Blogger - Display Newest to Oldest

×

Subscribe to Twistblogger

Get updates delivered right to your inbox!

Thank you for your subscription

×