Hey all!
I was looking at the documentation on Tag Filtering, and I can get a single tag to filter my collections, but as soon as I add another using the + operator, it returns nothing. Anyone else tried this and had success?
Hmm, interesting… I’m using Andaman, by Barracuda. But I also tested this using the default Dawn theme, and it’s not working there either.
I just installed the Search and Discovery app, and even that isn’t allowing multiple tags to filter… the other filter options become disabled once I select one.
Filtering by Category allows for multiple parameters though.
What is the exact structure of the URL path you’re using? (removing any sensitive info)
This returns products with the tag “hoodie”
…myshopify.com/collections/all/hoodie
This will return products with the tag “headwear”
…myshopify.com/collections/all/headwear
But this returns nothing…
…myshopify.com/collections/all/hoodie+headwear
Oh, I think I’ve misunderstood how tags are supposed to be filtered… I expected it to show all the blog posts that have the tags “hoodie” OR “headwear”. It looks like this is evaluating the multiple tags using AND . So my products would need to have both tags in order to be shown.
And I now see that in the docs as well…
“Tag filtering uses the AND operator”.
Sorry for the confusion… carry on.