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,656 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. |
pandy |
Mar 9 2018, 01:26 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
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. No, but it's theoretically possible that Blogger's search thing can search for two labels. I've never used Blogger and probably it can't since you are supposed to click on a label and you can only click on one. But impossible it ain't. If it is possible only Blogger knows the format needed. |
Lo-Fi Version | Time is now: 26th April 2024 - 03:48 AM |