Popular Post Widget

image Previously i write  a post about how to increase your Blog's Page Views, it's said that one of the technique to increase your blog's page views is to put popular post widget on your blog page. Popular post widget let your readers know what is the WOW article you have on your blog, based on how many comments it's received. Recently i found this useful Popular Post Widget. And i want to share this Popular Post widget with you all.

Popular Post Widget code

<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="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=a7d3195528df5e96181a3d2712266226&url=http%3A%2F%2FYOUR_BLOG_ADDRESS_HERE_WITHOUT_http://&num=10" type="text/javascript"></script>
<a href=http://ezpctips.blogspot.com target="_blank"><span style="font-size: xx-small;">Popular Posts Widget</span></a>

to enable this popular post widget on your blog, you have to make a little change on that above code. First you have to change the red color text in the code with your blog URL without http:// (For example if your URL is http://ezpctips.blogspot.com then you have to change the red text code with only ezpctips.blogspot.com . Next important thing is the bold text code, by default it sets to display 10 popular posts on your widget, you can change th enumber of popular posts you want to display by modifying the bold number code above with any number you want.
Once you are ready to put your code on your template, Go to your dashboard-Layout-Page Elements and click Add a new widget, next you have to choose Add HTML code. Copy paste your code above and click save to save your setting.

For a little preview, your popular post widget should look like this:

Post one (18)
Post two (14) etc.

If you encounter problems with this tutorial, let me know so i can help you to fix it. Thanks
More Blogging tips : All Blogging Tips

Technorati Tags: ,,,,


SBA said...

Hi, I was about to respond to your comment on my blog about not being able to get the PosrRank.com version of this widget to work on your blog. Glad you used the one based on # of comments, but I prefer the other one which has many other factors. Anyway, did you try signing up for the postrank before creating your widget? Leave the reply back on the 15 useful widgets post --- we have comment subscribe by post so I'll see it. Good luck.

Post a Comment