ADVERTISEMENT
More Stuff
Simple Recent Post Widget helps to display your recent post on your specific page or on sidebar. Here is simple steps to add Simple Recent Post Widget on your blogger blog.
Step 1 : Login to your Blog with your Google Account.
Step 2 : Choose your Blog where you want to add Simple Recent Post Widget.
Step 3 : Click on Layout.
Step 4 : Click on Add a Gadget.
Step 5 : Click on HTML/JavaScript.
Step 6 : Copy the code below to paste on HTML/JavaScript and Save it.
Code Start
Customize :
var numposts = 5;
Change value 5 to change total display links.
Refresh your Blog to Check :)
Enjoy Blogging.
Simple Recent Post Widget for Blogger
Step 1 : Login to your Blog with your Google Account.
Step 2 : Choose your Blog where you want to add Simple Recent Post Widget.
Step 3 : Click on Layout.
Step 4 : Click on Add a Gadget.
Step 5 : Click on HTML/JavaScript.
Step 6 : Copy the code below to paste on HTML/JavaScript and Save it.
Code Start
<script type="text/javascript">Code End
var numposts = 5;
var standardstyling = true;
function showrecentposts(json) {
for (var i = 0; i < numposts; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
posturl = entry.link[k].href;
break; }}
posttitle = posttitle.link(posturl);
if (standardstyling) document.write('<li>');
document.write(posttitle); }
if (standardstyling) document.write('</li>'); }
</script>
<br />
<ul>
<script src="/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts&max-results=999"></script>
</ul>
Customize :
var numposts = 5;
Change value 5 to change total display links.
Refresh your Blog to Check :)
Enjoy Blogging.
3 Comments
Very nice post sir thanks for sharing.......
ReplyDeletetechhindipost.com
Thank You.
DeleteHelpful Post!
ReplyDelete