Popular Post Widget i.e Most commented Posts for blogger as is very great widget to show of your posts, is very easy to install ..........
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=1a1c6e4e6d4f148e3650fda46910e15f&url=http%3A%2F%2Ftechtasks.blogspot.com&num=10" type="text/javascript"></script>
<noscript><a href="http://techtasks.blogspot.com" target="_blank">Tech Tasks</a></noscript>
Above code displays the post(comment count)like this.
If you want show posts with out comment count.
use the following code...
<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%2Ftechtasks.blogspot.com&num=10" type="text/javascript"></script>
<noscript><a href="http://techtasks.blogspot.com" target="_blank">Tech Tasks</a></noscript>
Don't Forget to change the blog address show in RED color
Here num=10 is no of posts you want to display.
6 comments:
Nice posting and great blog, i must learn from u..
from http://universmile.blogspot.com
Welcome To all....
I have been visiting various blogs for my term papers writing research. I have found your blog to be quite useful. Keep updating your blog with valuable information... Regards
Hi buddy, I want to show gratitude for writing such a good feature article, really will support me out in frequent ways…
Great post.I too want to display comment count.Thats why i like first option.Thanks for sharing it.Its really informative post.
Greetings! Quick question that's totally off topic.
Do you know how to make your site mobile friendly? My web site looks weird when viewing from my iphone4.
I'm trying to find a template or plugin that might be able to correct this problem.
If you have any suggestions, please share. Thanks!
my blog ::
Respects for your's Questions & Opinions