Changed the max posts displayed per category

Finally figured out how to change the maximum posts shown when clicking on a particular category in the View Posts by Categories widget.

My apologies to anyone who has attempted to view posts by category and given up due to the large number of images trying to load at the same time.

For any Blogger user who wants to change it, you have to go to the Template Tab > Edit Html Page. Ensure that Expand Widget Templates is checked and search for ‘data:label.url’.

Change ‘data:label.url’ to ‘data:label.url + “?max-results=10″‘. Substitute 10 for the number of posts to be shown. Ensure the quotation marks are in the correct positions! (I messed up for quite a while due to my understanding of quotation marks in other programming languages.) Finally, save the template and you’re done!

Always remember to BACKUP your template first though.

This more detailed post at hackosphere.blogspot.com served as my reference for this template edit. Thanks Ramani!

Tags:

1 comment:

  1. Josephine, Tuesday, March 6th, 2007, 9:38 pm

    oh monkey, can change for me??

     

Write a comment: