Sunday, November 15, 2009

Control number of posts displayed in Label page!

Most of us would have noticed when we are in any label page , the default number of post will be around 20. Without knowing how to control this code most users would have jumped to  the mode that will display only the post title not the content . To over come that here is the method for control the number of post in label page.

Goto 'Layout' then to 'Edit HTMl' and don't forget to click on 'Expand widget templates'

Search for this code:
data:label.url

Replace the above code with the code shown below 
data:label.url   "?max-results=n"

where the value of  "n" indicates how many post you want to display .Set your own value . and see the chages after you save the Template.  

NOTE: depends up on the Template , the first shown code may be present at different places . replace all those code with the second one for better working . 

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home