September 30, 2013

How to Display Recent Posts in Blogger

Displaying Recent posts in your sidebar often help your users to quickly take a look at the content that is more new and fresh. It also gives them a basic idea that what kind of content is published on a certain blog. If the most recent posts are somewhat linked to each other, then it might engage your visitors for a bit longer.  However, in some designing methods people want to display recent posts differently according to their design. In this article, we will show you How to Display Recent posts in Blogger.

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.

38 comments:

  1. Thanks. Really easy and helpful. Waiting for more great tutorials from you guys!

    ReplyDelete
  2. Is the first one with description?

    ReplyDelete
    Replies
    1. Yes, First one is with description and post title but without thumbnail

      Delete
  3. Can I customize it. means how to change the height of image, or text-transformation?

    ReplyDelete
  4. How to make it move? As in ascending or descending recent posts?

    ReplyDelete
  5. 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.

    ReplyDelete
    Replies
    1. It works on Labels if your are giving labels to your posts it will display them correctly.

      Delete
  6. hey the recent posts widget can be seen on my blog however your links are also visible ... how can i delete them

    ReplyDelete
    Replies
    1. You need to replace www.mybloggerlab.com with your domain name

      Delete
    2. there is "mybloggerlab.com" three time in this code.
      which one we need to replace with our domain name.
      please reply

      Delete
  7. Thanks for the simple and great tutorial!

    ReplyDelete
  8. is that possible, just to show the title ? i don't need to show, thumbnail, summary

    ReplyDelete
  9. Your json/css files in the script have generated too much traffic and have been blocked.

    ReplyDelete
    Replies
    1. Hi,

      We have updated the tutorials. New Links are working

      Delete
    2. am having the same issues..how am i going to make the recent post tittle display?

      Delete
  10. 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!

    ReplyDelete
  11. Hello give me please the CSS for thumbnail size

    ReplyDelete
  12. 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!

    ReplyDelete
  13. Dear friends if i use in my personal blog may be copyright issue or not??

    ReplyDelete
  14. how do I solve this one The reference to entity "alt" must end with the ';' delimiter.

    ReplyDelete
  15. 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?

    ReplyDelete
  16. my blog is not working this widget here
    https://onlinepakistanofficial.blogspot.com

    ReplyDelete
  17. 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 ????

    ReplyDelete
  18. Hi,

    We will share a tutorial about this, next week. Till then stay tuned.

    Cheers

    ReplyDelete
  19. it has been more than a week now and still waiting bro :)

    ReplyDelete

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.