Limit The Number of Posts Displayed in Labels Page

Limiting the number of posts displayed on your Blogger blog's labels page is a good idea. If you feel that your labels page is showing too many posts, it's better to limit them. We have already discussed how to limit the number of posts on the home page of your Blogger blog, but we can't do the same for labels pages. In this post, I will show you a simple method to limit the number of posts shown on your labels page.

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

You can easily increase or decrease the number of posts displayed on your Blogger blog's labels page. Limiting the number of posts shown on the labels page can improve your blog's loading time. You can set the number of posts shown on the labels page, just like you can do for the home page. In this post, I will show you how to limit the number of posts that appear on your labels 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. Simply change the value of "max-results" in the code of step 4 to limit or change the number of posts displayed on your labels page.

No comments:

Post a Comment