How To Control number of posts in Label pages in Blogger

As you know , if you click on a label , it will redirect you to a page with all the posts on that label. If there are lots of posts for a specific label , the label page will be so long. This will annoy the reader. Blogger do not give us a simple way to control this label page's posts. So we have to do it manually. Lets see how to ,


1. Edit your Template
2. Now find out 


<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'>


press 'Ctrl' + F to open your browser's search box)


Now you will find out some code lines as


<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'>
<data:label.name/>
</a>
</b:if>
<span dir='ltr'>(<data:label.count/>)</span>


If you already have deleted the label number count ( learn how to remove label number count ) You may not see code 


(<data:label.count/>) line.

Now replace 


<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'> 


with 


<a expr:dir='data:blog.languageDirection' expr:href='data:label.url + &quot;?max-results=5&quot;'>

5 
stand for the number of posts per a label. Change it to any number ( number of posts that you are willing to show in the label page )

Now follow the Safety Saving Steps.

And
 
Share this article :
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Blogger Templates - All Rights Reserved
Template Created by Creating Website Inspired by Sportapolis Shape5.com
Proudly powered by Blogger