Advertisements:
Show Limited Number of Posts when Blogger Label is Clicked. Many bloggers want to show or display only limited number of blog posts when some one has clicked a the blogspot label. By default blogger will show 20 blogs when a label is clicked.
Steps to show limited number of posts:
1. Log in your blogger Dashboard blog
2. Go to Layout >> Edit HTML >> check (tick) Expand Widget Templates
3. Find out <b:widget id=’Label1′ from your templates code (Use Ctrl + F to find):
4. Now your code will look like below -
<b:widget id='Label1' locked='false' title='Label Title' type='Label'> <b:includable id='main'> <b:if cond='data:title'> <h2><data:title/></h2> </b:if> <div class='widget-content'> <ul> <b:loop values='data:labels' var='label'> <li> <b:if cond='data:blog.url == data:label.url'> <span expr:dir='data:blog.languageDirection'><data:label.name/></span> <b:else/> <a expr:dir='data:blog.languageDirection' expr:href='data:label.url'><data:label.name/></a> </b:if> <span dir='ltr'>(<data:label.count/>)</span> </li>
5. Now add the dark words to the above code as follows -
<b:widget id='Label1' locked='false' title='Labels' type='Label'> <b:includable id='main'> <b:if cond='data:title'> <h2><data:title/></h2> </b:if> <div class='widget-content'> <ul> <b:loop values='data:labels' var='label'> <li> <b:if cond='data:blog.url == data:label.url'> <span expr:dir='data:blog.languageDirection'><data:label.name/></span> <b:else/> <a expr:dir='data:blog.languageDirection' expr:href='data:label.url + "?max-results=10"'><data:label.name/></a> </b:if> <span dir='ltr'>(<data:label.count/>)</span>
6. save the template, thats all. If you want you can change the number of posts to be displayed, 10 posts will be showed in the above code.






Thank you