Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Maximum Number of Posts in Blogger Label Page

He shows you a simple technique on how you can change number of posts in Blogger Label Page (category page). By default, Blogger has set a maximum of 20 posts but this tutorial allows you to customize it – you may want to increase or decrease maximum number of posts depending on your preference.
If you want to have some changes, you will have to edit the template. By doing so, follow these steps:
1.Blogger Dashboard > Template > Edit HTML. Click [] Expand Widget Templates.
2.Search for this code:
expr:href='data:label.url'
3. Replace it with the following:
expr:href='data:label.url + "?max-results=200"'
In the above code, Peter opted to use 150 because he wants all posts to be displayed. You may use another value instead of 150.
If you can find   expr:href=’data:label.url’ repeat step 3.
For example like this
<b:loop values='data:post.labels' var='label'>
            <a expr:href='data:label.url + "?max-results=200"' rel='tag'><data:label.name/></a><b:if cond='not data:label.isLast'>,</b:if>
          </b:loop>
4.For Menu tabs:
If you are using Menu Tabs which links to your Label pages, than the Label Links you are using probably looks like this :    
[ http://YOUR BLOG NAME.blogspot.com/search/label/YOUR LABEL NAME ] 
For Example search like this "http://www.tutorialdba.com/search/label"
To limit the number posts shown under a particular Label, we just need to add the following to the link ?max-results=5 . So your Label Link should be like this
[ http://YOUR BLOG NAME.blogspot.com/search/label/YOUR LABEL NAME?max-results=150 ]   
   Here the max-result=5 means to show only 5 posts at a time under that particular label link. You can change it to any number you want and than save it than save your template.

I would suggest not to increase the max-results to more than 5 or 6, because more is the number longer it will take to load the pages. One more thing to remember is that the LABEL menu is case sensitive, so you must put it as it appears. otherwise it won’t work.   

Labeling and Categorizing your Blog posts is very important not only for your readers to surf through your blog but also for the search engines.

5. Save template.
    Note: Do save a backup before doing any changes in your template. Here’s how you do it:
    Blogger Dashboard > Template > Backup (seen at the top right corner) > Download full template > All files.

    Comments

    Popular posts from this blog

    How to find the server is whether standby (slave) or primary(master) in Postgresql replication ?

    7 Steps to configure BDR replication in postgresql

    How to Get Table Size, Database Size, Indexes Size, schema Size, Tablespace Size, column Size in PostgreSQL Database

    Ora2PG - Oracle/MySQL to Postgres DB migration Version 20.0

    PostgreSQL Introduction