Adding more " Recents " to your blogger blog

This item was filled under [ News ]

In previous article i have told you how to add recent posts and recent comments to blogger blog , now i will tell you how to add more ” recents ” to your blogger blogs , if you visit my blog frequently , probably you have noticed the newbies on sidebar which are ” Recent Templates ” and “Recent Hacks ” , i created these bars creating feeds for each category and with the help of Jackbook’s recent comments and recent posts script we will be able to show more than 5 posts on our feeds. Follow the steps to do the same :

1.Go to your template
2.Add new widget
3.Chose HTML / javascript
4.Paste the codes below

<script src=”http://files.lifewg.googlepages.com/blogger-widget.js”></script>
<script>var numposts = 10; var showpostdate = false; var showpostsummary = false; var numchars = 100; </script>
<h2>RECENT Templates</h2>
<script src=”http://beta.blogger.com/feeds/YOUR-BLOG-ID/posts/full/-/LABEL-NAME?orderby=published&amp;alt=json-in-script&amp;callback=rp”></script>

How to adapt your blogger variables to codes :

1.For blog id click here after finding your blog id change it with YOUR-BLOG-ID on code
2.For label name , click the label you want to show the posts under that label and copy the line shown in bold from your browser

http://www.yourblog.com/search/label/label%20name

now paste it to LABEL-NAME on code

3.To change the numbers of posts which will be shown change the number on the line shown in bold

var numposts = 10;

thats all!
Do not forget to subscribe for latest articles!

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Comments on “Adding more " Recents " to your blogger blog”

Leave a Comment