How To Change the Count of Blog Post in Labels

Each of the Blog labels show the number of post publish under them.There is default with blogger that it will show the count of all the post under defined label.What if some one want to show limited number of post under each of the labels. There is a small change in the code and anyone can fix the number of post under labels.

Steps :


1. Expand your template widgets , and find the codes below :


< b:widget id='Label1' locked='false' title='Labels' type='Label' >


2. Try to find these lines :



<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'>
<data:label.name/>
</a>
</b:if>
<span dir='ltr'>(<data:label.count/>)</span>


3. Now replace the lines above with the lines below :

<a expr:dir='data:blog.languageDirection' expr:href='data:label.url + "?max-results=5"'>
<data:label.name/>
<span dir='ltr'>(<data:label.count/>)</span>
</a>
</b:if>


NOTE: You May change the results=5; to any numbers depends on your suitability.



Enter your email address:




Previous Post Next Post