Recent Posts Widget For Blogger



More then 5 Recent Posts Widget For Blogger. As recent posts can easily be added via feedburner or google.Or with feed widget provided by blogger.I will tell you all different methods here on how to add recent posts widget to blogger with all techniques.You can use the one you like or suit your blog.

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.

12 comments:

Nayan said...

Hi

please see this page : http://mlxperience.blogspot.com/2008/11/recent-post-thumbnails-widget-for.html

this page show a Recent Post Thumbnails Widget for Blogger. but they did not show randomly post thumbnail or widget that shows posts under a determined tag or label. can you do this?

Anshul said...

okies friend i will try to edit javascipt to make it random posts instead of recent .

•▬●๋•p.k.áŕừń●๋•▬• said...

yes brother it is working thanks yaar... it's realy great... can u able to do same hack for RECENT COMMENT(12 comments in a Widget) i need this also..


http://www.hacking2all.blogspot.com

Anshul said...

Just check this line in above codes

http://yourblogname.blogspot.com/feeds/posts/default

Replace with this one for comments

http://yourblogname.blogspot.com/feeds/comments/default

xc said...

Great!
thx u~

ZéPovinho said...

Mate i have been using this widget for quite a while, but recently it doesnt work :S

I have it saved just like the one above, but with my blog name, and still doesnt work...but i havent changed the script. Cause honestly i have no idea what is that. Cant you give me a hand please?

Thx

Anshul said...

@zepovinho the host at which my script is hosted have exceeded out of bandwith so you have download script and upload to your server and remplace with your link to make it work.

Billy said...

I love this but there's no break between the post date and the summary, so that it looks like this:

"Post Title - Mar 06Post summary begins"

What do I need to do do that the post summary drops down onto the next line?

Reporting said...

Great hack...thanks!

I modified it:
numposts: 500
showpostdate = false;var showpostsummary = false

This gives me only post titles in order they published, most recent at the top.

I placed the modified code in an HTML widget in the sidebar.

Site is: http://body-fatloss-testimonials.blogspot.com/

It's not that pretty but it works.

Jim

Anshul said...

@reporting it will work like that only aand its looking good to your blog i chked.

Post a Comment