Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
Im trying to recreate the filter by tag functionality thats been removed in the new V2.0 SHopify.
Can anyone tell me how Id select a specific tag in liquid and use its link?
e.g. within a loop to go through all the tags:
{% for tag in collection.tags %}
I can use this liquid code to echo the link to filter by that tag:
{ tag | link_to_add_tag: tag }}
Now say I wasnt in a loop and I want to echo the link for a specific tag, how would I do that? Something like this:
{ tag='specific_tag' | link_to_add_tag: tag }
I'm not sure if you're still looking for a solution, but here is how you accomplish this outside a for loop:
{{ "custom_link_label" | link_to_add_tag: "specific_tag" }}
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025