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




feedburner

Every New lesson , directly to your Mail Box .....

1 comments:

Anonymous said...

Every weekend i used to visit this website, because i want enjoyment, since this this web site conations actually fastidious funny information too.


My web site anwartschaft private krankenversicherung

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

The Word Validation image has been removed and no need to Sign In. So don't be lazy ..........

 
This blog sucks under Internet Explorer.

Buy me a Coffee


Powered By

Latest Site News


Animated 3D Dock removed in order to speed up loading time and to help IE users.

This site will be come up with a DOMAIN name soon.

Link and Win competition will start as soon as the Domain name added. Join with us. You could be the winner.

Site Info

since 2009 April

Submit a Lesson

Visitors

of Visitors read Pages.

Lessons by DragonD | Template by Simran | Logo by lahirulcd | Temaplate redesigned by DragonD| Icons by DryIcons.com | Licensed under CC license Creative Commons License