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

Vintage Indian Print Ads: Bring On The Nostalgia [With Pictures]

In this post we will be featuring a few vintage Indian print ads that made a strong case for their respective brands; compelling the Indian consumers to desire and buy more. Note the ads have not been arranged in any particular order. 1. We start off with an ad promoting the iconic Ambassador car. The ad promotes the Ambassador as a "the big size family car" keeping in mind the needs of a large Indian (often joint) family. 2. Next is a poster of Superstar Amitabh Bacchan promoting Bombay Dyeing clothing. 3. Next in is an iconic Amul advertising featuring a little girl. The ad talks about a little butter on a hot chapati making for a delicious one course meal. 4. A Bata Ad for girls who move in fun circles. 5. An interesting ad featuring Kishore Kumar promoting Brylcreem hair gel.  6. Here is an interesting print ad promoting Cadbury's Gems. 7. An ad promoting camel oil pastels. Camel oil pastels allow Raju to paint without the fe...

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.

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...