Depending on the number posts, your Label list will grow.As you are at liberty to put as many Labels as you can think of for a particular post.Its said you can have as many as 500 labels for a single post (but I think no body has so far reached that figure yet). If you have been Labeling your blog posts correctly with few labels, than its not a problem as long as the number of posts are not very high.But as the your passion grows and you start writing more and more articles, your labels list will grow and grow and ultimately fill up your side bar.If you have been following the golden rule of Labeling your Blog post under two categories that is Major and Minor categories, than you are well off and probably you know already what this post is all about, but even than, if you are using Labels as tabs either on the Navigation bar or in the side bar, and if you click on that particular Label, all the post under that particular Label will be shown. Suppose you have 30 or 40 posts under that Label, imagine how long it will take to load all those pages ?, that is something no blogger not even you want that. There’s got to be way to limit the number Posts to be shown under a Label page. In Blogger its quite easy to limit the number posts to be displayed per page, but how to limit the number of Post in a Label Page?
In this article I will show you How you can Limit the number of Posts in a Label Page.
First Log on to your Blogger account , than go to Dashboard > than to Design > Edit HTML
Before you Proceed further please Back up your existing Template to be on the safer side, just in case something goes wrong you can always revert back
Next on the Edit HTML window on the top right corner check the box “Expand Widget”. Now find the following code in your Template. Don’t get restless, its quite easy to find. Press CTRL+F on your keyboard a small search box will be displayed on your extreme top right corner of the window, copy paste the following code there , the code will be highlighted (as shown below) on your template if found.
expr:href=’data:label.url’
Depending on your Template you may find this code in more than one instance.Replace them with the following code:
expr:href=’data:label.url + “?max-results=5″ ‘
If you are using Menu Tabs which links to your Label pages, than the Label Links you are using probably looks like this : [ http://YOUR BLOG NAME.blogspot.com/search/label/YOUR LABEL NAME ]
To limit the number posts shown under a particular Label, we just need to add the following to the link ?max-results=5 . So your Label Link should be like this
[ http://YOUR BLOG NAME.blogspot.com/search/label/YOUR LABEL NAME?max-results=5 ]
Here the max-result=5 means to show only 5 posts at a time under that particular label link. You can change it to any number you want and than save it than save your template. I would suggest not to increase the max-results to more than 5 or 6, because more is the number longer it will take to load the pages. One more thing to remember is that the LABEL menu is case sensitive, so you must put it as it appears. otherwise it won’t work.
Labeling and Categorizing your Blog posts is very important not only for your readers to surf through your blog but also for the search engines.
You may like to know How to Label your Blog post the right way.
Posted By: Ben Jamir
My name is 




I have added related posted like you added and increased number of posts. Now its showing me 20 related posts per page.
I saw in my label page, i can also see 20 post per label then i have added “expr:href=’data:label.url + “?max-results=5″ as you mentioned in the above post.
Now, if i open any label, i can see 50 results, but in the related post, it is still showing 20 related post.
I need your help. I spent more than one day but dint do anything… Help me.
Hello Rahul !! Have you properly categorized your posts ? as explained in this POST. Besides in your blogger dashboard you need to specify how many posts to be displayed per page. Hope it helps. It worked fine with me, when I had my blog at blogspot.
Please check my site, I have used the code but nothing happened. I have done in dashboard as well.
Well RAHUL, there seems to be a little confusion here. I have checked your site, it seem to be working quite well, all your menus, and sub menus are working perfect. What I observed is the related posts which are a bit too many 15 I counted, if that’s what you mean than I guess, you followed the wrong article. It seems you are site is on Blooger, if so read this POST for the best related widget, or if you are on Word press platform than read this POST for the best WP related post plugin. Hope this should work for you.
By the way with these widget/plugin you can specify how many related post to be displayed at the end of your Post.
My main page does has a maximum of 8 post, but then when I reach page two i only shows 4 post. How do I set it also to 8? Also having problems implementing this. I replaced it but still no changes to the number of post per label
Hello Kramer, depending upon the number of posts you have under that particular label, only those will be shown.