How To Limit Number of Posts on Page Label
How To Limit Number of Posts on Page Label - This time I will give a tips for you who want to limit the number of post on label page. This method is quite useful if you have a Blog that there are widget labels that often bring up the number of 10 posts, although my friend has replaced with the amount specified in the post widget settings but on the search label the number of posts that appear still with the standard number of bloggers that is 10 posts.
Generally the label links are in the widgets of labels, breadcrumbs, and menus (if you install manually in the menu section). To overcome this, you only need to add the attribute "max-results" into the link widget label so that posts that appear in the search label can be your own set number.
Applying to the label widget
Open Blogger >> Template (make sure the blog already has a widget label) >> Click Edit HTML >> Find all the code below:
Replace all code with this code:
Implementation on menu label links
For example link label on menu like this:
Then add the "max-results" attribute like the trick in step no 2.
Save the template.
Easy is not the way above. That's the tips I can share this time about How To Limit Number of Posts on Page Label. Hopefully with a short enough article this can be useful and good luck.
Generally the label links are in the widgets of labels, breadcrumbs, and menus (if you install manually in the menu section). To overcome this, you only need to add the attribute "max-results" into the link widget label so that posts that appear in the search label can be your own set number.
How To Limit Number of Posts on Page Label
Applying to the label widget
Open Blogger >> Template (make sure the blog already has a widget label) >> Click Edit HTML >> Find all the code below:
expr:href='data:label.url'
Replace all code with this code:
expr:href='data:label.url + "?&max-results=5"'
Determine the value of "max-results = 5" with the maximum number of posts that will appear.
Implementation on menu label links
For example link label on menu like this:
<a href='https://khalistablog.blogspot.com/search/label/SEO'>SEO</a>
Then add the "max-results" attribute like the trick in step no 2.
<a href='https://khalistablog.blogspot.com/search/label/SEO?&amp;max-results=5'>SEO</a>
Save the template.
Easy is not the way above. That's the tips I can share this time about How To Limit Number of Posts on Page Label. Hopefully with a short enough article this can be useful and good luck.
Post a Comment for "How To Limit Number of Posts on Page Label"
Provide comments relevant to the posted articles and provide critiques and suggestions for the progress of the blog