We had released Recent Comments Widget sometime back that turned out to be an instant hit. We were overwhelmed with the responses we received. There were a lot of requests for a similar Recent Posts widget. So, today, we are releasing Recent Posts widget for BlogSpot users.
How is it different from the other Recent Posts widget?
- The problem with other widgets is that the source code for them lies with the widget author and the authors often integrate it in within their own site. If because of some problem their site is down, the recent posts widget will not work.Here, I am releasing the source code so that the logic would reside within your blog itself and hence you can do away with dependency on 3rd party site not under your control.
- You have a number of control and customizations options available. With this widget you have the option to show:
- Posts Title only.
- Posts Title with Date.
- Posts Title with excerpt.
- Posts Title with Date and excerpt.
Why should we use this widget when we can use you the feed option provided by blogger itself?
Well, for a number of reasons.
- Blogger limits the recent posts to 5.
- There are a number of customization options I have provided which you might not find with the internal blogger system.
- [Trivia] The URL that appears in your Firefox bar (below) when you hover the mouse over the link, contains your feed URL and not the actual URL.
How to install Recent Posts widget for blogger?
- Login to the blogger dashboard.
- Go to ‘Page Elements’ tab
- Click on Add a Gadget. Select HTML/JavaScript widget type.
- Now this is the most important step. Download the corresponding code given below and paste it in the widget box you have just opened above.
- Right click on the button below to download code for Posts Title only.
- Right click on the button below to download code for Posts Title with Date.
- Right click on the button below to download code for Posts Title with excerpt.
- Right click on the button below to download code for Posts Title with Date and excerpt.
- Right click on the button below to download code for Posts Title only.
- Scroll down to src=http://xyz.blogspot.com and replace xyz with your blog’s name. For example if your blog’s URL is http://abc.blogspot.com then the code should become src=http://abc.blogspot.com DO NOT TOUCH any other part of the code or else it might create problems.
- You have the option to increase/decrease the number of posts displayed in your widget. Go to var numposts = 5; (3rd line from the top, in the code you have downloaded). Increase/Decrease the number of posts. By default 5 posts would be displayed.
- If you choose to show excerpt for your posts, you have the option to increase/decrease length of the excerpt. Go to var numchars = 100; (6th line from the top, in the code you have downloaded). Increase/Decrease the number of characters. By default length is set to show 100 characters.
- You are done! Lastly please do not remove the footer credits*.
Please let me know if you face any problem implementing the code above.
If you like the above widget. Consider donating and encourage us to come up with more such widgets.
*The code is released under the condition that footer credits should remain intact.
thaaaankkkk yooouuu veryy much !!!
Great little app. I’m in with @2CV67 and @Jim M in saying it’s unfortunate the app picks up (lower-case) filenames instead of (mixed-case/punctuated) titles, but I suppose that’s the way it must be… At any rate, it’s much better and faster than any competitors I’ve found. Thanks much. (I’ll have to be more creative or exacting with my post titles!)
Hello. I so excited I have found this “recent posts” widget, however, I’m experiencing problems.
Instructions say right click the green button below. When I right click I do not get the download prompts you’ve suggested. Instead, I get the normal options when I right click. Am I not doing this correctly. Thanks
The widget seems to pick up the file name of the post instead of the post title. The file name appears to always be in lowercase, regardless of any capitalization you may enter into the post title. If there was a way to pick up the post title and display it correctly it would have a nicer look.
Once again thank you so much.
you have good and friendly instructions to follow.
Congrats!
Pink
thanks..thats great idea to increase my impression…
i want to put this script in my site…
thanks
Interesting, I`ll quote it on my site later.
Thank you
Robor
Hi, Thank you! I would now go on this blog every day!
Thank you
Zoran
Hi, Thank you! I would now go on this blog every day!
Eremeeff
I temporarily used a competitor widget on my main blog 2cv67blog but left both on my test blog 2cv67blog2 for comparison…
And I see it does not recognize Capital Letters & also misses out little words like “a” & “an” in my titles…
Thanks!
In fact I found out how to get single-line spacing instead of double-line for my posts list, and I also spaced your advert down a couple of lines, to avoid confusion, by deleting/adding lines:
“document.write(”);”
This is the end of the HTML now:
“var re = /]*>/g;
post = post.replace(re, “”);
document.write(”);
if (showposttitle == true) document.write(posttitle);
}
document.write(”);
document.write(”);
document.write(”);
}
Recent Posts Widget by ReviewOfWeb”
………………
I have a new problem now in that some of my titles show an added number at the end, which is not in the real title.
I don’t know where that comes from or how to remove it.
Example; 2cv67_725 should not have _725.
Thanks for any suggestion!
Thanks!
I am a beginner & just installed on a dummy site to test & it seems to do what you said!
Is there any way I can compact the displayed list, by starting a title every line, instead of every 2 lines?
Truncating titles if necessary to avoid overflow…
Thanks for any suggestions!
Ya, there should be a minor tweak required to do this. Let me know exactly what you need. I “ll try to work on it this weekend.
Thanks for sharing knowledge…
This code working great!
Thanks a lot again!
hi… thanks for sharing here…. done! 😉
I have put the recent posts on my site and so far it is working great! Thanks.