<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%2FYOUR-DOMAIN-NAME.com&num=10"
type="text/javascript"></script>
You have to change YOUR-DOMAIN-NAME.com with your URL and the number 10 with the required number of posts. Save your template and preview the Popular posts widget .
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments (Atom)
Your comment are Welcome