Code to search on two labels question |
Code to search on two labels question |
Nasshorn |
Mar 9 2018, 10:42 AM
Post
#1
|
Group: Members Posts: 2 Joined: 9-March 18 Member No.: 26,607 |
I am brand new to the forum and I am a total novice to HTML code but have been able to learn a little by searching and experimenting. I purchased a Template for my blog (which is on Blogger) and it has a nice menu system that pulls up posts based on a search for certain labels. Here is one of the lines in the code: <li><a href='https://scottlawfindingpixels.blogspot.in/search/label/Gear'>Gear</a></li> which obviously, as it says, searches the blog for the a post with the label "Gear". My question is; is there any way to have it look for two labels and only return posts with both of those labels, for example if I wanted "Gear" and "Tripod"?
Thanks for any help on this. |
Christian J |
Mar 9 2018, 11:39 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,673 Joined: 10-August 06 Member No.: 7 |
That looks like an ordinary link, but I suspect Blogger is doing a search before generating the linked page.
QUOTE My question is; is there any way to have it look for two labels and only return posts with both of those labels, for example if I wanted "Gear" and "Tripod"? No, you can't follow two links at once. Instead it would require some kind of form elements, such as checkboxes. Alas I don't know what Blogger templates offer, but I'll move the thread to the web site functionality forum. |
Nasshorn |
Mar 9 2018, 11:53 AM
Post
#3
|
Group: Members Posts: 2 Joined: 9-March 18 Member No.: 26,607 |
That looks like an ordinary link, but I suspect Blogger is doing a search before generating the linked page. QUOTE My question is; is there any way to have it look for two labels and only return posts with both of those labels, for example if I wanted "Gear" and "Tripod"? No, you can't follow two links at once. Instead it would require some kind of form elements, such as checkboxes. Alas I don't know what Blogger templates offer, but I'll move the thread to the web site functionality forum. Thank you Christian J. |
Lo-Fi Version | Time is now: 28th May 2024 - 10:49 PM |