Whenever you click on any label page of your blog it shows mostly all of your posts in that single page, sometimes that page length becomes so long that it becomes problem for your visitors or readers.And some want to be shown specific no of posts according to there template designs like i want to show only one post in label pages in my photo blog so that it can work just as next previuos on all pages.So this hack is very useful for some of the fellow bloggers.
Now how to implement this :-
OPTION 1
1. You should have label widget installed in your blog to proceed further.
2. Now go to Dashboard > Layout > Page Elements > Edit Html Page > Expand Widgets
3. Now search for below code within the html
4. And replace the above codes with below:-
The digit 2 in red in above code tell how many posts you want to show in label pages.So change it to any number as how much posts you want to see in your label pages.And if you have many posts in label pages and want to show all then use this hack how to show only post titles in label pages.It will be very helpful for you.
5. Repeat step 3-4 above to every label you have in your blog.
That's it We have successfully added " Show Specific Number of Posts in Labels Page " . here after your Blog Will Show only specific number of posts in Labels Page. I hope This Hack will be useful for you all. If you have any doubts or difficulties in implementing this Hack please let me know in comments.
OPTION 2
If the OPTION 1 doesn’t work, so try this:
1. Go to Dashboard > Layout > Page Elements > Edit Html Page > Expand Widgets
2. Press CTRL F or search for this code
3. Replace it with this:
The digit 2 in red in above code tell how many posts you want to show in label pages.So change it to any number as how much posts you want to see in your label pages.And if you have many posts in label pages and want to show all then use this hack how to show only post titles in label pages.It will be very helpful for you.
4. Repeat step 2-3 above to every label you have in your blog.
*BONUS - Show / Display Specific Number Post in Blogger Label Pages (MENUBAR)
How about to set specific number post for Menu bar like below?
Follow these steps:
1. Go to Dashboard > Layout > Page Elements > Edit Html Page > Expand Widgets
2. Press CTRL F or search for this code
<li><a href='http://YOUR-BLOG-ADDRESS/search/label/YOUR-LABEL'>2 COLUMNS</a></li>
3. If you want to show only 8 post every click to the menu, insert code ?max-results=8 after YOUR-LABEL
<li><a href='http://YOUR-BLOG-ADDRESS/search/label/YOUR-LABEL?max-results=8'>YOUR-LABEL-NAME</a></li>
4. Done!
Note : All of these steps are NOT APPLY to LABEL CLOUD
Source from anshuldudeja.com with modifications
LaYaNLaH!!!
Now how to implement this :-
OPTION 1
1. You should have label widget installed in your blog to proceed further.
2. Now go to Dashboard > Layout > Page Elements > Edit Html Page > Expand Widgets
3. Now search for below code within the html
<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'>
<data:label.name/>
</a>
</b:if>
<span dir='ltr'>(<data:label.count/>)</span>
4. And replace the above codes with below:-
<a expr:dir='data:blog.languageDirection' expr:href='data:label.url + "?max-results=2"'>
<data:label.name/>
</a>
</b:if>
<span dir='ltr'>(<data:label.count/>)</span>
The digit 2 in red in above code tell how many posts you want to show in label pages.So change it to any number as how much posts you want to see in your label pages.And if you have many posts in label pages and want to show all then use this hack how to show only post titles in label pages.It will be very helpful for you.
5. Repeat step 3-4 above to every label you have in your blog.
That's it We have successfully added " Show Specific Number of Posts in Labels Page " . here after your Blog Will Show only specific number of posts in Labels Page. I hope This Hack will be useful for you all. If you have any doubts or difficulties in implementing this Hack please let me know in comments.
OPTION 2
If the OPTION 1 doesn’t work, so try this:
1. Go to Dashboard > Layout > Page Elements > Edit Html Page > Expand Widgets
2. Press CTRL F or search for this code
<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'>
3. Replace it with this:
<a expr:dir='data:blog.languageDirection' expr:href='data:label.url + "?max-results=2"'>
The digit 2 in red in above code tell how many posts you want to show in label pages.So change it to any number as how much posts you want to see in your label pages.And if you have many posts in label pages and want to show all then use this hack how to show only post titles in label pages.It will be very helpful for you.
4. Repeat step 2-3 above to every label you have in your blog.
*BONUS - Show / Display Specific Number Post in Blogger Label Pages (MENUBAR)
How about to set specific number post for Menu bar like below?
Follow these steps:
1. Go to Dashboard > Layout > Page Elements > Edit Html Page > Expand Widgets
2. Press CTRL F or search for this code
<li><a href='http://YOUR-BLOG-ADDRESS/search/label/YOUR-LABEL'>2 COLUMNS</a></li>
3. If you want to show only 8 post every click to the menu, insert code ?max-results=8 after YOUR-LABEL
<li><a href='http://YOUR-BLOG-ADDRESS/search/label/YOUR-LABEL?max-results=8'>YOUR-LABEL-NAME</a></li>
4. Done!
Note : All of these steps are NOT APPLY to LABEL CLOUD
Source from anshuldudeja.com with modifications
LaYaNLaH!!!