Advanced Search Module

Close Search
 

Show only specific Number of posts in Labels Page – Blogger Hack

August 9, 2008Blogger Hack

21 Comments

One of my Reader asked me in Comment Form ” How to Show Specific Number of Posts in Labels Page ? ” . So I am writing this Post on his request. This Hack ( Show Specific Number of Posts In Labels Page ) is very useful for Page Navigation Hack . Users who use my Page Navigation hack might have came across an error , that is When They visit Labels Page , Blogger will display all posts under that particular label although you might have mentioned in the page Navigation Widget to show only 2 , 3 or any number you specified there.

So here is an easy Hack to display only specific number of posts per page while visiting Labels. Just follow the simple steps below to implement this hack on your blogger blog.


Show Only Specific Number of Posts in Blogger Labels Pages


Step 1 :

Users Who Have installed Labels Widget in their Blog , Please Navigate to EDIT HTML PAGE . Then put a check to Expand Widgets Box on Right Side.

Now search for this Code :

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

only the Widget Id can be different , other things will be same. Now search for this code within the widget

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

Now replace the above code with this code .

<a expr:dir=’data:blog.languageDirection’ expr:href=’data:label.url + &quot;?max-results=2&quot;’>
<data:label.name/>
<span dir=’ltr’>(<data:label.count/>)</span>
</a>
</b:if>

The digit in red represents number of posts to be Shown in Single Labels Page.
Change the digit ( number ) in red to your wish .

You Can put same number you entered in Page Navigation Hack

That’s it We have successfully added ” Show Specific Number of Posts in Labels Page ” . here after your Blog Will Show only specific number of posts in Labels Page. I hope This Hack will be useful for you all. If you have any doubts or difficulties in implementing this Hack please let me Know. I will clarify them in comment form or If neccessary I will write a New post like this.

thanks for reading…….

Related posts:

  1. Page Navigation Hack for Blogger
  2. Related Posts Widget For Blogger with CSS
  3. Show Date before each Post in Blogger
  4. Page Navigation Menu Widget for Blogger
  5. Add Yahoo Smileys to Blogger Posts – Firefox Hack
 
 

21 Responses to “Show only specific Number of posts in Labels Page – Blogger Hack”

  • xphunt3r August 11, 20086:48 am

    Salam Alaikum!
    I really enjoyed with this post and exactly looking for this very before. Finally got it and hack my blogger. And just waiting for Page Navigation as yours.
    Check my blog
    Xphunt3r
    Allah Hafiz

  • Tecnodrop August 14, 20083:57 pm

    Hello, you might convert this wordpress theme to blogger:

    http://www.wpthemesfree.com/test.php?theme_id=2247

  • Mohamed Rias August 14, 20084:01 pm

    Hi Technodrop ,

    I will convert that wordpress theme to blogger very soon ( probably within Sunday ).

    regards,
    Blogger Accessories

  • Tecnodrop August 14, 20084:45 pm

    I have another suggestion for you, see this theme, with all certainty will be very successful among bloggers if converted to blogger, see the excellent positioning of the ads units:

    http://test.wpthemesfree.com/?preview_theme=acosminmag

  • Mohamed Rias August 14, 20084:53 pm

    Hi Tecnodrop !

    I asked permission from the author to convert his wordpress themes to Blogger. if he give me permission then sure I will convert all those inspiring wordpress themes to Blogger XML templates.

    regards ,
    Blogger Accessories

  • xphunt3r August 15, 20085:28 pm

    @technodrop,

    I have another suggestion for you, see this theme, with all certainty will be very successful among bloggers if converted to blogger, see the excellent positioning of the ads units:

    http://test.wpthemesfree.com/?preview_theme=acosminmag

    *******************************************************************************

    What you think about this blogget template on my blog similar to yours request

    http://techno-snack.blogspot.com
    **********************************************

  • Tecnodrop August 17, 20081:41 am

    I have used this in my blog, but he had a problem with a hack that installed, nor had good yields with adsense

  • ????? ???????? August 25, 200810:50 am

    hi,
    Mohamed Rias !

    If want to show limited no. of lables on sidebar, then what will be hack..? I dont want to use link-list method to shwo limited no. of lables, beacuse my blog is in Hindi (with Unicode encoding), when I put a lable in Hindi, which links can no be addable.. it will be garbaged

  • Mohamed Rias August 25, 200812:16 pm

    Hi ????? ???????? ,

    I will write a post on this topic soon.

    regards,
    Blogger Accessories

  • Anonymous September 7, 20084:46 pm

    Hi Mohamed,

    Sorry If I have missed it, but How can we Show only Specific number of Comments per page in blogger?

    It annoys me when the comments section gets very long and page stretches very deep.

    Is there a way around this?

    Thanks

    Teni

  • ABout All Things September 14, 200810:07 pm

    Very nice thanks

    and i have question how u do post a comment open in same windows under ur post in blogger thanks my URL is
    http://humorgate.blogspot.com/

    thanks in advance

    Nermien Barakat

  • Mohamed Rias September 15, 20084:50 pm

    Hi About All Things ,

    Welcome to Blogger Accessories. I explained how to Embed Comment form below each post in Blogger in this post http://rias-techno-wizard.blogspot.com/2008/07/embed-comment-form-below-post-in.html . please visit that post.

    If you have any doubt please mail me mohamedrias1103@gmail.com

    regards
    Blogger Accessories

  • vamshi November 21, 20086:54 am

    hi ….i want to display my post in 10 pages…so i want to know how to display page numbers for single post.

  • Blog Master December 8, 20085:44 pm

    wow good man
    http://bollywood-insider.blogspot.com

  • $H@n December 19, 20085:50 am

    thanks dude….after reading your article my problem is solved.

  • Barrio Porteño February 1, 20097:51 am

    Hi Mohamed,

    Is there a way to implement this hack on the old blogger template? It’s very annoying to see a label’s page with the number of posts set on the main page… In my case I need the label’s page show more posts than the main page…

    Thanks in advance

  • D-Pirate March 1, 20092:04 pm

    hi mohamed see my beautiful template with hell lot of improvement which i did by myself..but one problem my template automatically display labels in top nvigation .. i am bit worried when i will have lots of label how will it behave is there any hack for this see
    http://www.b4blogging.blogspot.com

  • ANJINAP March 14, 20092:04 pm

    I searched lot,Finally find this. I personally convey my thanks to Rias.This is very critical hack but show simple.

  • ROCKERZ March 24, 20092:27 am

    i did not find the above script in my template , so please give me any other idea for this hack its very urgent please

  • mobmani May 22, 20095:49 am

    hiiiiiii dude good information

    see my site it worked

    http://www.mobmani.blogspot.com

  • Sujith Bhakthan T R June 8, 20097:49 am

    How to show specific number of "Comments" in a post.

    for eg: one of my post has 100 more comments. i sont wanna show the whole comments in that page as it looks a long page. is there any way to show a few newer comments only in that page like this while keeping the old comments.?

 
 

21 Responses to "Show only specific Number of posts in Labels Page – Blogger Hack"