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

Robbers Vs Lawyers Joke

A gang of robbers broke into a lawyer's club by mistake. The old legal lions gave them a fight for their life and their money. The gang was very happy to escape. "It ain't so bad," one crook noted. "We got $25 between us." The boss screamed: "I warned you to stay clear of lawyers--we had $1000 when we broke in!"

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.