Felicity - Featured Posts on Home Page

This is the featured posts section on the home page:

By default, the widget will display your most recent posts. This is the HTML:

<script type="text/javascript">
var numposts = 4;
</script>
<script type="text/javascript" src="/feeds/posts/default/?published&alt=json-in-script&callback=featuredposts"></script>

How to display featured posts

  1. Go to Posts > add the label Featured to the 4 posts you want to display (or you can use another label)
  2. Go to Layout > open the "Recent/Featured Posts" widget from the Home Before Content widget area
  3. Replace the code in the widget with this one:
<script type="text/javascript">
var numposts = 4;
</script>
<script type="text/javascript" src="/feeds/posts/default/-/Featured?published&alt=json-in-script&callback=featuredposts"></script>

A few notes:

  • Important! Blogger's labels are case-sensitive, so make sure to write the label exactly the same way in both places (posts + HTML). For example, Blogger will consider featured and Featured to be two different labels. So if you write the label as Featured or FEATURED in your posts, write it the same way in the featured posts's HTML.
  • You can add only 1 label.
  • The label "Featured" will not be displayed among the labels in your posts.
  • You don't have to use "Featured". For example, if you want to display the latest posts of a specific label, just add that label instead.