- Login to blogger with your ID, on the Dashboard, click Layout of the blog you want to place the popular post widget.
- After you click Layout, make sure you are in the Page Element, now add a new gadget on the sidebar or on the footer of your blog by click on Add a Gadjet.
- In the dialog box of Add a Gadget, please select HTML/JavaScript by give a click on the text or the sigh plus (+). After the field of Configuration HTML/JavaScript appears, copy the JavaScript below:
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 = "<a href=" + href + ">" + obj.value.items[i].title + "</a> <br/>";
document.write(item);
}
document.write('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=1a1c6e4e6d4f148e3650fda46910e15f&url=http%3A%2F%2FYourblogname.com&num=10" type="text/javascript"></script>
- If the code above copied, paste into the field or text area of Configuration HTML/JavaScript. For the Title, you can fill out with Popular Posts or Most Commented Post or whatever you like, then don’t forget to click Save.
- Done
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=1a1c6e4e6d4f148e3650fda46910e15f&url=http%3A%2F%2FYourblogname.com&num=10" type="text/javascript"></script>
Replace the red-printed text above with your blog’s name, and the number 10 at code m&num=10 shows the max number of your popular posts that would be displayed. If you want more or less posts, just adjust the number, as you desire e.g. 15, 20, 5, 3, or anything you like.
how to make a post here in a comprehensive study you can follow this link kang abeh
waduw sekarang pake bhs inggris aku kuraang dong
ReplyDeletepopular tuh bedasarkan jumlah komentar yg masuk kan?
ReplyDeletewah...good tutorial...it's usefull
ReplyDeletegood info..
ReplyDelete