Limit the number of posts displayed in labels page

Limiting the number of posts displayed on your Blogger blog labels page is really good idea. If you think that your Blogger labels page showing more posts, then it is better to limit the posts on labels page. We already discussed about limiting the number of posts on home page of your Blogger blog. But we can't limit the posts on labels page like limiting the posts on the home page. In this post I'm going to show you simple method to limit the number of posts shown in labels page.

How to set the number of posts displayed/shown on labels page :

We can  increase or decrease the number of posts displayed in labels page on Blogger blog. We can limit the number of posts shown on labels page like setting number of posts shown in home page easily . It is better to limit the number of posts displayed on labels page to increase your blog load time. Here I'm showing how to limit the number of posts appear on label page.

Follow below steps to set the number of posts shown in labels page in Blogger blog.

Step 1 : Go to Blogger Dashboard

Step 2 : Click on Template

Step 3 : Click on edit HTML

Step 4 : Search for expr:href='data:label.url'

add   "?max-results=5" to the above line, like below

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

step 5 : Click on Save template.

You can manually set the labels link.

label link : http://your blog name/search/label/label name

add ?max-results=6 to the label link like below
http://your blog name/search/label/label name+?max-results=6

Like this you can increase or decrease the number of posts displayed/shown on labels page. Just change the maximum results value in the code on step 4 to limit/change number of posts displayed in labels page.

No comments:

Post a Comment