- Also Read: Blogger Conditional if statements
Syntax for Label search
You may already know the below syntax.
Note: Labels are case sensitive. If a label names starts with an uppercase letter and you write a lowercase then the query will not return the result. If a label name is Social Media (first letters are capital) and you type social mEdia then it wont work. You must type the exact same letters
1. Searching a LabelLets try searching for all posts nested under the label Social Media in our blog. The URL would look like the one below:
2. Searching a keyword within a LabelI tried this but seems like Blogger doesn't support running queries within a label. For example lets search for all Facebook related posts under the category Social Media
Note: Spaces between labels can be denoted inside URLS with %20. You can write Social Media as Social%20Media also.
you will observe that though the query is executed but the results are same no matter whether you search for Facebook, twitter or anything. The following urls all return the same result.
But wait! Can't we search a keyword inside a label at all? Well for that we will introduced a rarely discussed trick using Feeds. Click here
3. Running a simple Search queryNow lets search for a keyword inside entire blog posts. This is a query search that looks for a keyword in all posts irrespective of which label it belongs to.
Note again that spaces between keywords are denoted by %20.
4. Multiple Label SearchIf you wish to search posts tagged under two labels, you will need to use the or operator (|) in order to do that. For that follow the syntax below:
Lets now search all posts containing the labels SEO and Social Media
Interesting? sure it is!
5. Sort Search Results by Date
You might have observed that though this method returns most recent posts on facebook but it is also showing some irrelevant posts that doesn't contain the keyword facebook at all. Read the next method to understand why.
6. Sort Search Results by Relevance
7. Set Search CountBy default blogger display 20 posts at a time. If you wish to increase or decrease this number then use the parameter max-results=
The following query will return 50 posts based on query Facebook.
8. Set Search Results Count and Sort by DateIn order to sort posts by date and also set the post count to 5 then use the following syntax:
Syntax for Feed Search
1. Posts FEED
2. Comments FEEDA feed containing all your blog comments has the following syntax:
3. Prevent Feed redirection to FeedburnerIf you are redirected to feedburner then this means you are using feedburner to sent email updates to your subscriber. In order to prevent this use the parameter redirect=false as shown below:
4. Search Post Feed by LabelNow lets display all posts inside your blog feed containing the label SEO
5. Set Search Results count in Posts FeedThe following query will return 5 recent posts of your blog
6. Set Count while searching Posts Feed by labelThe following query will display only 10 posts under the category/label SEO. No redirection parameter required here.
7. Set Search Results Count in Comments FeedThe following query will return 5 recent comments posted on your blog
8. Set Start Index and End Index in Posts Feed
The start-index tells where to start from and max-results show how many posts to display.
- Tip: This method was utilized on our Multiple Sitemap Generator Tool
9. Search for a keyword within a Label in Post Feed
In the above query we are filtering the keyword Smartphone on all posts containing the word SEO. This is the only working method I could try and our coming widget is based on this search method which I am sure you will love a lot.
Need Quick Help within 24 Hours? ASK NOW
If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »