Display Recent Post With A Summery in Blogger?
Some people have different approaches of showing recent posts in their blogs. They want them to be with a title and a short description, so that users can get some idea about the topic. There're multiple ways of doing that, but we have listed below the most simplest and work friendly method.The first thing you need to do is to go to Blogger.com >> Layout >> Add a Gadget >> Add HTML/JavaScript. Now paste the following code in the HTML Text Area. Remember: Don’t forget to replace mybloggerlab.com with your personal domain name.
<link href="http://mybloggerlab.com/Scripts/recent.css" type="text/css" rel="stylesheet" />
<script src="http://mybloggerlab.com/Scripts/json.js"></script>
<script type='text/javascript'>
var numposts = 3;
var showpostthumbnails = false;
var displaymore = false;
var displayseparator = true;
var showcommentnum = false;
var showpostdate = false;
var showpostsummary = true;
var numchars = 100;</script>
<script type="text/javascript" src="http://www.mybloggerlab.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=labelthumbs"></script>
You may change the character limit by replacing (100) with any other according to your needs. Once everything is done, save the gadget.
Displaying Recent Posts in a List Format in Blogger?
Some people want things to be as modest as possible, this is the reason why they want to show recent posts with just post titles in a list format.<link href="http://mybloggerlab.com/Scripts/recent.css" type="text/css" rel="stylesheet" />
<script src="http://mybloggerlab.com/Scripts/json.js"></script>
<script type='text/javascript'>
var numposts = 3;
var showpostthumbnails = false;
var displaymore = false;
var displayseparator = true;
var showcommentnum = false;
var showpostdate = false;
var showpostsummary = false;
var numchars = 100;</script>
<script type="text/javascript" src="http://www.mybloggerlab.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=labelthumbs"></script>
You may change the number of posts to be shown in the gadget by replacing 10 with any other number. You can simply paste the code in the HTML/JavaScript gadget's area or you can also use them in your post pages. Once everything is done, save the gadget.
Displaying Recent Posts with Thumbnails in Blogger?
Sometimes people want things to be perfect. As we all know picture speaks a lot than words, so adding a small thumbnail to recent posts might help in grabbing the attention of your visitors. You can customize the thumbnail size through a simple CSS, but it might get distorted as it is originally small.To add this in your blog, Blogger.com >> Layout >> Add a Gadget >> Add HTML/JavaScript. Now paste the following code in the HTML Text Area. Once everything is done, after customizing save the gadget.
<link href="http://mybloggerlab.com/Scripts/recent.css" type="text/css" rel="stylesheet" />
<script src="http://mybloggerlab.com/Scripts/json.js"></script>
<script type='text/javascript'>
var numposts = 3;
var showpostthumbnails = true;
var displaymore = false;
var displayseparator = true;
var showcommentnum = false;
var showpostdate = false;
var showpostsummary = true;
var numchars = 100;</script>
<script type="text/javascript" src="http://www.mybloggerlab.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=labelthumbs"></script>
Congratulations: You have successfully learned how to display Recent posts in blogger. Go and check out your blog to see things are working perfectly or not.
We hope this article have helped you in learning a way to display recent post in your blogger site. You can even display posts by using your labels. However, we will discuss them in the upcoming tutorials. If you like this article do share it on Facebook and other social web.
About the Editorial Team
The Editorial Team of MyBloggerLab consists of a group of Professional Blogger geeks Led by Syed Faizan Ali (Founder of MyBloggerLab).
38 comments
Thanks. Really easy and helpful. Waiting for more great tutorials from you guys!
Is the first one with description?
Yes, First one is with description and post title but without thumbnail
Can I customize it. means how to change the height of image, or text-transformation?
Superb post, Thanks
Very useful, thank you! =)
I love this widget
How to make it move? As in ascending or descending recent posts?
They're arranged the way they are published.
Thanks Bhai
Great, thanks a lot !!
it is not working properly for me. I see only one post. You can visit hbtk on below page for the problem
http://hbtkollywood.blogspot.sg/
Please look in to this.
It works on Labels if your are giving labels to your posts it will display them correctly.
hey the recent posts widget can be seen on my blog however your links are also visible ... how can i delete them
You need to replace www.mybloggerlab.com with your domain name
Thanks for the simple and great tutorial!
is that possible, just to show the title ? i don't need to show, thumbnail, summary
Your json/css files in the script have generated too much traffic and have been blocked.
Hi,
We have updated the tutorials. New Links are working
Thanks very much for this generous advice. I almost have the code working perfectly for me, in a blogger widget here: http://thismoaning.blogspot.co.uk/
I want to change a couple more things, though:
1) Close the space between each item in the post list (make it narrower)
2) Get the whole list to sit at the far left of the widget space. At the moment it's inset under the widget title 'ALL POSTS LIST'.
I put copies of the linked .js and .css files on my own server so that I could tweak them. E.g: I took away the 'strong' tag from the post link in the .js file; and did various things with size and spacing in the .css file. However, I cannot figure out where to make changes to achieve those two last things that I want to do.
There are three possibilities:
- The linked .js file on the server
- The linked .css file on the server
- The html/javascript code of the blogger widget
I'd be grateful for any suggestions
Thanks!
Hello give me please the CSS for thumbnail size
ul.label_with_thumbs img {
}
Thanks a lot BRO
When added, widget title is visible but there are no posts listed. When I replaced my blog URL with another blog URL, it works fine. My blog is currently set to private, but changing the setting to public didn't matter. Do I need to change anything in the Template, either with HTML or CSS? Any idea what can be wrong? Thanks!
there is "mybloggerlab.com" three time in this code.
which one we need to replace with our domain name.
please reply
Last one
Thanks Sir
Dear friends if i use in my personal blog may be copyright issue or not??
No, there is no copyright issue in that.
how do I solve this one The reference to entity "alt" must end with the ';' delimiter.
Were you able to solve this problem?
Even if value of 3 (in var numposts = 3;) is changed to a higher number like 100,the maximum number of displayed posts remains limited to 25. Can the number of dispalyed posts be increased beyond 25 so that all posts can be displayed?
my blog is not working this widget here
https://onlinepakistanofficial.blogspot.com
thanks
am having the same issues..how am i going to make the recent post tittle display?
hi bor, your widget is the only working one that i found really awesome job you did here, i have always being a fan of your blog,
but i need some help bro, i want to display recent posts ( your widget ) below blog post ( instead of related posts, just below the post not in home page) but i couldnt do that can you please help bro ????
Hi,
We will share a tutorial about this, next week. Till then stay tuned.
Cheers
it has been more than a week now and still waiting bro :)
Post a Comment
We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.