How to add most commented post widget on blogger

Adding most commented post widget on blogger

The very first thing you need to do is to login to your blogger account with the help of your Gmail ID and password. 

Once you are successfully entered to Blogger Dashboard,

 go to Layout >> Sidebar >> Add a gadget >> Add HTML/JavaScript and in the HTML Text box paste the following code:

<!– Popular posts with comment count Start –>
<script type=”text/javascript”>
function getYpipePP(feed) {
 document.write(‘<ol style=””>’);
 var i;
 for (i = 0; i < feed.count ; i++)
var href = “‘” + feed.value.items[i].link + “‘”;
var pTitle = feed.value.items[i].title;
var pComment = ” (” + feed.value.items[i].commentcount + “)”;
var pList = “<li>” + “<a href=”+ href + ‘” target=”_blank”>’ + pTitle;
 document.write(pComment); //to remove comment count delete this line
 <script src=”
<span style=”font-size: 80%; float:right;”><a href=””>Make your own</a></span>
<!– Popular posts with comment count End –>

After pasting the above code, you need to customize it to your desire needs, so do not forget to replace with your blog URL. By default, it would display 10 most commented posts so to increase or decrease the count replace =10 with the number of posts you would like to display.

Once you have finished customizing the gadget, press the “Save” button to enable the gadget in the sidebar of your blog. Congratulations, you have successfully added a list of most commented posts in your blogger blog.

Read Also  How to submit your site to Google Search Console (step-by-step Guide)

Written by Yusuf Bitrus

I'm a Digi-Preneur, Affiliate Marketer, SEO intermediate and Blogger by heart.
I Help bloggers and business by writing and providing solutions digitally via my blogs, social media, and online/offline events.


Leave a Reply
  1. Hi to every body, it's my first visit of this weblog; this blog includes remarkable
    and really excellent material in support of readers.

  2. This is very interesting, You are a very skilled blogger.
    I've joined your feed and look forward to seeking more of your excellent post.
    Also, I have shared your site in my social networks!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.