25 Popular Post Widget-Most commented Posts Blogger

Popular Post Widget i.e Most commented Posts for blogger as is very great widget to show of your posts,which your readers most liked and expressed there love in comments.You will love to use this widget in your blog for sure.It is very easy to install just have to add small bit of javascript codes to your blog sidebar.

How to install this widget:-

Go to Layout > Add page Element > Html/Javascript

Add the below code there


<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ol 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>";
document.write(item);
}
document.write('</ol>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=1cf38ae68efbe859c4ba1ee239cec099&url=http%3A%2F%2Fanshuldudeja.blogspot.com&num=10" type="text/javascript"></script>
<noscript><a href="http://anshuldudeja.blogspot.com" target="_blank">Blogger Hacks</a></noscript>


Change the code in red above with the your blog name and in green to show how many posts you want to display and please don't remove he credit's.Now save it.

Using above codes will show total no of comments in front of posts if you dont wanna show them use below codes


<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ol 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>";
document.write(item);
}
document.write('</ol>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=1a1c6e4e6d4f148e3650fda46910e15f&url=http%3A%2F%2Fanshuldudeja.blogspot.com&num=10" type="text/javascript"></script>
<noscript><a href="http://anshuldudeja.blogspot.com" target="_blank">Blogger Hacks</a></noscript>


I hope you will like this widget for sure Enjoy !!!

Credits To Divya Sai.Visit his blog for sure as his blog is also the good source for blogger widgets.
If you liked This Just Subscribe With US to Get Recent Widgets, Hacks And Templates To your Inbox.
Share/Bookmark

25

WebbieLady said...

Ah Yes, This is Beautiful. I would like to have this, I will grab this later. Thank you for sharing to us.

BTW, since you are a widget expert, maybe you can give me some advice as to a wide 2-column blogger layout, with a thin right sidebar? I ahve ben hunting for it for my photo blog but i cannot find one...sigh...desperation..

January 17, 2009 2:44 PM
dBa said...

hi.why my widget can not use it?? :((
please help me!

http://keranamu-dba.blogspot.com

February 28, 2009 10:12 AM
Anshul said...

Why what happened its working gret you can chk in my design

February 28, 2009 11:49 AM
toto said...

It can not be shown now,
Please check!

April 3, 2009 11:38 PM
Anshul said...

Its working check my popular posts i am using same codes toto.

April 3, 2009 11:50 PM
Ms Unreliable said...

Popular Posts does not work for me on your site in either Firefox or Internet Explorer. Additionally, it does not work when I use this code on my blog...but would love to have it so will keep checking in :)

April 6, 2009 6:46 PM
Anshul said...

ya somtimes here come problems dont worry its fine it is working , try it after some time.

April 6, 2009 10:22 PM
Mikes said...

Thanks a lot for this! May God Bless you more!

May 12, 2009 3:12 AM
bible uncle said...

Popular Posts does not work for me, it shows like this :
blog post_17
blog post_9720
blog post
blog post_5792

please help me

June 4, 2009 2:39 PM
Anshul said...

@ bibble i dont think the widget should show any problem its working fine as there can be bandwidth problem as many users using it it stops working due to bandwidth problem sometime.

June 4, 2009 3:14 PM
sop said...

Its works fine for my blog
thanks you

June 10, 2009 8:14 AM
GMP said...

It doesn't work for me

http://dylit.blogspot.com

June 20, 2009 8:25 PM
Anshul said...

@ GMp Might be bandwidth problem.

June 21, 2009 12:52 AM
Kelvin said...

ur top post widgets with comments is not working but the 2nd one without comments is. Can u try to fix the 1st one?

July 1, 2009 9:26 PM
yhan02ph said...

yes i tried the first one but it doesn't work only the second without comments.
http://tipsterian.blogspot.com/

August 8, 2009 9:57 AM
N@k$h@tr@! said...

Not working for me.
I changed it to point to my blog too!!

August 27, 2009 8:57 PM
Your Frugal Buddy said...

neither code works for me :-(

August 28, 2009 4:01 AM
Anshul said...

Friends its not working due to bandwidth problems.

August 28, 2009 4:47 AM
JaLpArI - tHe MeRmAiD said...

Thanks anshul :)
the second widget's working... :):)

September 28, 2009 1:42 AM
Nomad said...

not working for me either... nothing is showing up at all...

365daysofpeople.blogspot.com

October 1, 2009 5:53 AM
Don Luke said...

it doesnt work on my blog: http://idillico.blogspot.com

October 29, 2009 2:58 PM
jrplaza said...

good post, ive been looking for this widget and now thanks.... jrplaza of http://moomovie.blogspot.com

December 11, 2009 8:47 AM
Unikversiti said...

Cool blogging tips, thank you and keep it up :)

December 11, 2009 12:33 PM
Hem och Lycka said...

doesn't work for me either

December 15, 2009 1:04 AM
TechGeeze said...

Hello,
I can't find the contact form, so I decided to put it here.

I've created a tutorial implementing the Most Popular posts base on most commented post. I've really worked hard to publish this friendly tutorial and hopefully you can share it to your readers. I know it can help a lot specially for those starters. Here is the full tutorial for this: Most Popular Post Widget for your Blogger blog (Most Commented Posts)

Hope you find this helpful.

PS. Please let me know if you can do link exchange. Contact me back at tonsblogger@gmaildotcom.

Thanks,Tony from BloggerGeeze.com

March 2, 2010 1:56 PM