Skip to main content

Edit/Customise Number Of Posts Displayed In Blogger Label Search

Clicking on an Individual Label category generally displays all/most of your posts (under that particular category on a single page. This has the following disadvantages

1. When the number of posts under a particular category is large, the single page becomes so long that it becomes a hinderance to easy reading.
2. It makes your blog look ugly.
3. It reduces the number of your page-loads. This often translates into reduction of your advertisement revenue.


The way out is a simple html hack that will allow you to display only a specific number of posts per page following a lable click/search.

Thus to display only a specific number of posts per page follow the following steps

1. You should have label widget installed in your blog to proceed further.
2. Now go to Dashboard > Layout > Page Elements > Edit Html Page > Expand Widgets
3. Now search for the HTML code displayed below

<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'>

4. Next replace the above code with the following:-

<a expr:dir='data:blog.languageDirection' expr:href='data:label.url + &quot;?max-results=2&quot;'>

Note: The digit 2 in RED above shows the exact number of posts to be displayed per page.


Thus If you implement the code above, you will be showing 2 posts per page upon a label click/search. You can change this as per your requirement.

Popular posts from this blog

A Super Funny Joke - The Boy And The Priest

A housewife takes a lover during the day, while her husband is at work. Unknown to her, her 9 year old son was hiding in the closet. Her husband came home unexpectedly, so she hid her lover in the closet. The boy now has company. Boy: Dark in here.. Man: Yes it is. Boy: I have a baseball. Man: That’s nice. Boy: Want to buy it? Man: No, thanks. Boy: My dad’s outside. Man: OK, how much? Boy: $250. In the next few weeks, it happens again that the boy and the mom’s lover are in the closet together. Boy: Dark in here. Man: Yes, it is. Boy: I have a baseball glove. Man: How much? Boy: $750. Man: Fine. A few days later, the father says to the boy, “Grab your glove. Let’s go outside and toss the baseball.” The boy say's, “I can’t. I sold them.” The father asks, “How much did you sell them for?” The son says, “$1,000.” The father says, “That’s terrible to overcharge your friends like that, that is way more than those two things cost. I’m going to...

Earn Money By Becoming A BigRock Affiliate

About BIGROCK Affiliate Program The BigRock Affiliate program is an online marketing program where affiliates promote BigRock products to their friends, family, customers etc and are paid attractive commissions for every successful purchase. Once you sign-up, you will receive a URL from BigRock (http://.bigrock.in). This URL will be your website from where you can sell BigRock products and start earning Commissions. In case you already have a Website / Blog, all you need to do is place BigRock banners or text links on your website, blog, facebook/twitter page and drive visitors to your unique URL and earn commissions. What products can you promote? As an affiliate, you can sell all BigRock Products. The Products include: Domain Name Registration Website Hosting Email Hosting Do-it-Yourself Website Builder Tool Build-it-For-Me Professional Web Design Service Digital Certificates. You can Signup by following this direct link :  http://www.bigrock.in/affiliate...

Using A Custom BigRock Domain For Your Tumblr Blog

This post features a tutorial on how to set up custom "BIGROCK" domains for your 'TUMBLR' Blogs.  I begin with an assumption that you have already purchased your domain from Bigrock.