Change posts quanlity when click on Label

Hello every body , today I will show you an useful tip for blogspot.This tip maybe has been shown at many site guides.But it is necessary so I decided to make this.It's called "Change the amount of post when click on Label".I think you will understand when you hear it! Yes , we can change it , we can change the number of posts when you or visitors click on each Label Name.

For example , Google blogspot's default number of posts is 20 (click on your Label and count if you don't believe) , but you don't want it to appear all 20 posts , just 5 , 10, 15...This is the greatest problem that many webmasters are in trouble now.

There are 2 ways for you , 1st way is for footer ( click on Label name on post's footer) , the 2nd way is for Labels on Label Widget.

Click Download full template to avoid crash work.

-1st way (for label on post's footer):
For example , If I want 10 posts to appear when click on Label on post's footer, in Edit HTML press Ctrl F and find this code data:label.url then change it by data:label.url + "?max-results=10 instead.This is the sample code :

<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url' rel='tag'> <data:label.name/> </a> <b:if cond='data:label.isLast != "true"'> , </b:if>

<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url + "?max-results=10"' rel='tag'> <data:label.name/> </a> <b:if cond='data:label.isLast != "true"'> , </b:if>

-2nd way(for label on Label Widget):

Try your best to find the place of Label Widget code(usually has id='Label1)and add the red code at right place :

<a expr:dir='data:blog.languageDirection' expr:href='data:label.url + "?max-results=10"'>

Save now and check your posts.This is not base on your Label Widget form.
Good luck to you , leave a comment if you have a problem.


Post a Comment

Thanks for reading , if you have any problem please leave me a comment here I will help you by my best.Please note that you put the friendly words tohelp each other to improving and developing these tips to be better,or the best way for you to track my blog is subscribing my Feed.You are always welcome on Zenplate.
Best regard