Display Recent, Popular and Random Posts in Blogger with Thumbnails


A blog in its sidebar can have different elements displayed. One of those is a listing of posts from the blog itself. The listing can be of popular posts, recent posts and random posts. These are there to grab visitors’ attention, hoping that those visitors might like to read more articles from the blog. Articles can be listed in the sidebar with just articles titles linked to the articles, or they can be listed with a thumbnail and a snippet of the article. The second one sounds more eye-catching.

In Blogger, we can add widgets or gadgets in order to make posts from the blogs appear on the sidebar. Blogger natively keeps the stats of post views and so it has an official gadget which we can use to display popular posts. Then there are ways to use the blogger post feed to display the most recent posts or even random posts.

Note: For the plugins below to work, jquery must already be included in your template.

Display Popular Posts with Thumbnails in Blogger / Blogspot

  1. Login to Blogger and head on to the layout editor of your blog.
  2. Click on “Add a Gadget” link in the part of the template where you want to list the most popular posts.
  3. From the official list of Gadgets in Blogger, scroll to the one that is titled “Popular Posts”.
  4. Either click on the title or the plus sign right next to it.
  5. In the next step, you can choose the title of the widget along with what to display. You can display the most viewed posts of all time, past 30 days or past 7 days. Choosing all time is not recommended because you’d want to keep this section fresh with recently popular posts. Reading posts from months or even years ago will not always be the visitors choice. But they are bound to have more views because they have been online for so long.
  6. Choose the checkboxes that says image thumbnails and snippets to display those respectively. It is more attractive when you have an image and a bit of text from the post. You can skip the post snippet, but images make your blog widgets look great, trust me.
  7. Click on “Save” and you are done. Top posts from the time period that you selected will be displayed in the sidebar or wherever you chose them to be displayed.

Display Recent Posts with Thumbnails in Blogger / Blogspot

  1. Login to Blogger, select your blog and click on Layout to reach layout editor of your blog.
  2. Click on “Add a Gadget” link where you’d be placing the widget. You can move this gadget later.
  3. Scroll down in the gadget list and find the one that says “HTML/JavaScript”. Click on it to add it.
  4. On the next screen, give your gadget a title like “Recent Posts”.
  5. In the content area, add the following code:

    Configurable options in the code:
    numberofposts:9 – Change 9 to whatever number of posts you want to display.
    commentstext:”Comments” – Choose what to display for the comments text. You can leave it as it is.
    imagesize:72 – Dimensions of your image. 72 is the default one.
    snippetsize – Length in characters of the text snippet accompanying the post.
  6. Hit save and you are done. You can edit the CSS in the code if you want.

Display Random Posts with Thumbnails in Blogger / Blogspot

  1. Go to your Layout editor of your blog, where you want to add a random posts gadget.
  2. Click on the “Add a Gadget” link, a popup will follow.
  3. In the popup, select “HTML/JavaScript”, gadget and click on its title or the ‘+’ button to add it.
  4. Give your widget a title like “Random Posts”, or “You may Like” for example.
  5. Add the following code to the “Content” area. Press save when you are done. Your Blogger blog now will now display random posts in the template.

    Configurable Options:
    rdnumbepost=5 – The number of random posts you want to display.
    rdsnippet_length=100 – Length of your post snippet alongside the thumbnail.
    var rdcomment=’Comments’ – Text for your “comments”. Leave it as it is.
    rdinfo=”yes”– Set this to anything else to hide the date and comments info.

Here is a preview of what you will get. You will get something similar depending upon your template:

recent-posts-preview

You may also like

LEAVE A COMMENT

Advertisements

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 2 other subscribers