How to limit the number of post in label page

If you have lots of posts it helps if you can decrease the number of posts appearing in a page. It helps you to reduce loading time and helps your reader to less scroling.

In blogger you can limit the number of posts appearing on the home page, but you cannot to do it on the label pages.
In this post I will show you how to limit the number of posts showing in label pages.

Changing the code for in-post and label post labels gadget labels :




    • Go to Dashboard > Design > Edit HTML


      • Back up your template

        Tick the Expand Widget Templates check box on top right of the HTML window.
        Look for following line in HTML code :


You may find more than one instance. Replace them with the following :

Changing the code for labels menu tabs :

If you use menu tabs to link to label pages, the links you use are probably look like this :


To limit the number of posts shown, just append ?max-result=5 to the link like this :




The codes above limits the list to 5 posts. (You change the number with your own limit). Now save it and see the result

17 comments:

  1. Thanks for this article. It is quite useful. I was looking for this feature for my blog www.wpcStylePuzzles.com

    ReplyDelete
  2. Thanks, today I applied this to two of my blogs

    ReplyDelete
  3. Thanks, I think the code must also be applied to my newly added label cloud, besides my label list.

    ReplyDelete
  4. thanks it helped me a lot.
    Do you know how to remove the navigation bar of blogspot. Your site doesn't have but mine have. I want to remove it. Thanks in advance.
    My blog is http://ankuresh.blogspot.com/

    ReplyDelete
  5. @Ankuresh

    To remove blogger bavbar you may visit mine another web site link at
    http://www.techzonebd.com/how-to-remove-or-auto-hide-blogger-navbar

    ReplyDelete
  6. thanks, it very helpful.
    i also share it with other
    http://slrc-spc.blogspot.com

    ReplyDelete
  7. This Hint was very useful thank you for placed it.
    Thanks.

    ReplyDelete
  8. that was really helpful. I use this at the Adelaide and South Australia blog. Thanks

    - tork

    ReplyDelete
  9. thanks. but I'm still looking a script that can automate any link to Label page so they will appears in limited post. any ideas?

    ReplyDelete
  10. thx.....its working...thx..thx..thx

    ReplyDelete
  11. thanks for sharing.......... keep this good work............

    Visit: keyguru.blogspot.com

    Keyguru is the Best blog For daily CRACKS,SERIAL NUMBERS,KEYGENS Product Activation Key Serial,Daily S.N For All Software Including Anti-virus and Windows.

    http://keyguru.blogspot.com/

    ReplyDelete
  12. thanks for this great info.........

    Visit: http://pakeset4u.blogspot.com/

    In this page you can Find Daily 100% working Eset NOD32 Username Password 2012-2013,Eset Smart Security 4,5,6 Username And Password,ESET NOD32 Keys 2012-2013,Daily Nod32 Passwords,EAV And Trial Username Everyday,Eset NOD32 Daily Updates 2012-2013.

    ReplyDelete
  13. Really nice post my dear friend. This post helped me a lot to solve the problem.

    ReplyDelete
  14. I Used it in my http://realtollywood.blogspot.com blog

    ReplyDelete

Let us know, what you think about this blog