How To Show Specific Number of Posts Under Labels [Blogger Blog]
Labels are very important for any blog. On Blogspot or Blogger,
Labels are used to group similar or related posts under one keyword. We
can create the categories of posts related to each other by using the
labels. For example if your blog has some posts on ‘SEO’ then you can assign the ‘SEO’ label to those posts of your blog. Your readers who are interested in SEO topic to read, they can access all the SEO posts of your blog. Labels also describe the post’s content. We can show the labels on our blog by using the Labels widget.
By default when we click on any label on our blog, all the posts with that label appear on a single page. This sometimes looks odd because if your blog has many posts (suppose more than 50) with one label then all those posts will appear on a single page when the users will click on that label. That page will become lengthy. It may irritate your blog readers and put a bad impression of your blog’s navigation on your blog readers. But don’t worry, we can solve this problem. In this post I shared the way to show the specific number of posts under labels or any label of your blogger blog.
We need to add a simple code to our Blogger blog’s template. After making this change we can show the specific number of blog posts for any label.
By default when we click on any label on our blog, all the posts with that label appear on a single page. This sometimes looks odd because if your blog has many posts (suppose more than 50) with one label then all those posts will appear on a single page when the users will click on that label. That page will become lengthy. It may irritate your blog readers and put a bad impression of your blog’s navigation on your blog readers. But don’t worry, we can solve this problem. In this post I shared the way to show the specific number of posts under labels or any label of your blogger blog.
We need to add a simple code to our Blogger blog’s template. After making this change we can show the specific number of blog posts for any label.
Steps to show specific number of blog posts under labels.
- Login into your Blogger account and select your blog.
- Then go to Templates and backup your blog template.
- After that click on the Edit HTML button.
- Find this code: expr:href='data:label.url' by pressing Ctrl+F.
- Then replace it with the code given below:
expr:href='data:label.url + "?max-results=4"'
- You can change the highlighted number in the code above with the maximum number of posts you want to show on single page for labels.
- After making these changes click on the Save button to save the template.
- Done!
0 comments:
Post a Comment