Set the number of posts Display on each Blog Label Page

Set The Number Of Posts Shown On Labels Pages For Blogger

6
data:blog.title
blog label

If we click on any Blogger label then we might see many posts are displaying on label pages. If you have more than 20 post under each blog label then by default blogger will display 20 posts per label page. This is not good for page loading speed. Because to display 20 posts per label will take extra time which will make your blog slower. Those who are not using any jump break on Blogger template then they will see the effect of loading time. Sometime image doesn’t load properly and even sometime page crash in loading time.

Generally the main aim to set the number of posts on each Blog label page to limit the number of post to display on label pages. You may selected 5 post per page on blog home page but when you click on label then it is displaying 20 posts. So to display same number of post per label we have to add a simple piece of code.

Add the code for Posts and Labels

Step 1 Log in to your Blogger account and Go to your Blogger Dashboard
Step 2 Click on -> Template -> Edit HTML

Step 3 Now Find the below code by pressing Ctrl+F 
expr:href='data:label.url'
Step 4 Now replace it by below code

expr:href='data:label.url + "?max-results=5"'

Customization


  • To increase or decrease the number of post just change the 5 with 3 or 8 as you wish.

Changing the code for labels menu tabs

This section is for setting the number of posts for label menu. If you are using Custom Menu on your blog then you should also follow this tutorial. I am giving example by using my menu code. Suppose one of my label name News and I want to display 5 posts under News label.

For Example
  • http://www.bloggerspice.com/search/label/News
  • http://www.bloggerspice.com/search/label/News?max-results=5
Here my label name is News and I have added a code ?max-results=5 and now 5 posts will display under News label when a visitor will click on it.

Similarly in case of your blog the code will be like below-

Incase of Blogger BlogSpot
  • http://www.YourBlogName.blogspot.com/search/label/Label Name
  • http://www.YourBlogName.blogspot.com/search/label/Label Name?max-results=5
Incase of Custom Domain
  • http://www.YourBlogName.com/search/label/Label Name
  • http://www.YourBlogName.com/search/label/Label Name?max-results=5

Customization

  • To increase or decrease the number of post just change the 5 with 3 or 8 as you wish.
That’s it. Now you will able to limit the number of post per label. For any query drop a comment below. Thanks.  
Set the number of posts Display on each Blog Label Page
4 Stars stars - "Set the number of posts Display on each Blog Label Page" If we click on any Blogger label then we might see many posts are displaying on label pages. I...

Post a Comment

expr:href='data:label.url + "?max-results=5"' its not working

you will find this code 4/6 times. so you have to change all the code---

expr:href='data:label.url

It worked well but there is no "NEXT" and "PREVIOUS" like "1-2-3-4-5" on my page. Can solve this problem please?

Hi Mitel... there must be more than 4/5 posts per label. after that it will show "NEXT" and "PREVIOUS" button. Suppose you have 5 post under a Blog Label and you have set 5 posts to display per page, then it won't display "NEXT" and "PREVIOUS" button.

How to change the number of post from the gadget ("Labels")? The both mentioned methods does not work for it.

I think you didn't change the code for all label markup..you will find the below code 4/6 times. so you have to change all the code---

expr:href='data:label.url'

replace the above code by below code.

expr:href='data:label.url + "?max-results=5"'

If you find the the code 5 times then you should replace it 5 times. And this code will work 100%.

Facebook Group Community Disqus Channel Code ConverterHide Code Converter Show EmoticonHide Emoticon

Got questions? Ask ’em below! While we’re here, you might like to give any feedback about this Post, Your comment inspire us to continuous Improvement of This Blog and Contents. Your words are your own, so be nice and helpful if you can. Please, only use your REAL NAME, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Make sure you tick the Notify Me box below the comment form to be notified of follow up comments and replies. Thank you for commenting

Contact Form

Name

Email *

Message *