How to add 5 recent posts with feed widget.
Click LAYOUT > ADD A GADGET > FEED
Then type your feed url and save it will show upto your only 5 recent posts.
How to add more than 5 Recent Posts Widget For Blogger using script.
Click LAYOUT > ADD A GADGET > HTML/JAVASCRIPT
Now add the code from below to it and save it.
<script style='text/javascript' src='http://blogergadgets.googlecode.com/files/recentpostswidgetv1.js'></script><script style='text/javascript'>var numposts = 5;var showpostdate = true;var showpostsummary = true;var numchars = 100;</script><script src='http://yourblogname.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts'></script>
As now just replace red codes in above codes with your script url and the number 5 is the no of posts to be displayed and last red is your blog url.nuchars=100 is for post desription.
Another Method To add more than 5 Recent Posts Widget For Blogger using feedburner.To read about it just visit this post.
No comments:
Post a Comment