June 15, 2016

How to Limit the Number of Posts in Label Page in Blogger

 Hi Bloggers ! if you have notice when you click on a label it will actually display all the posts under that specific label, now that can be a good thing to some but definitely not for those bloggers who has you know more than a hundred of posts. Well if you have a hundred then Google Blogger is forced to display all those hundreds of post on one page which will damage the page load time and will not get you more views. So how do we resolve that? I have one in mind - by limiting the number of posts displayed on a page, it is very simple. In short, in this tutorial I will be teaching you guys on how to limit the number of posts displayed on label page. There are 2 ways we can achieve this. First, is via changing the the code for label page. Second, is simply adding a line of code for every label page. This one is the First option.






Step 1. Proceed to Edit HTML page



Step 2. Find this Code 1.0. 
expr:href='data:label.url' or expr:href='data:label.url


Step 3. Replace it with this Code 2.0. 
expr:href='data:label.url + "?max-results=5"'

Customization :
- code in neon green is the number of posts displayed on the page.


Hope you guys like it. Please don't forget to check out my Facebook profile and my Instagram profile too. If you have questions or anything to say feel free to comment them down below. Thank you so much ! Happy Blogging