Creating Popular Posts Based on many comments on blogs

Leave a Comment
This is made using a javascript function to display the most popular posts based on the most commented on an article on your blog.
to find out how, please follow these steps:

  1. Log in to your blogger account
  2. Choose a Page Element --> Add a Gadget --> HTML/JavaScript
  3. Copy the code below
<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ul style="text-transform: capitalize;">');
var i;
for (i = 0; i < obj.count ; i++)
var href = "'" + obj.value.items[i].link + "'";
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
<script src="" type="text/javascript"></script>
<a href="" target="_blank"><span style="font-size: xx-small;">Popular Posts Widget</span></a>

Replace the bold text "" with your blog address without using http://
Replace the bold number "10" to set the number of posts that will appear on your blog on


Post a Comment