Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Controlling number of posts in Label pages

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




This post first appeared on Blogger Template Editing, please read the originial post: here

Share the post

Controlling number of posts in Label pages

×

Subscribe to Blogger Template Editing

Get updates delivered right to your inbox!

Thank you for your subscription

×