Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I'm hoping someone could help me with this. I have something similar working on my product pages whereby I'm using a collection reference metafield to show a link to a collection. I'd also like to get it to work on a collection page so that I can show on a specific collection a link to a different collection based on what I enter in the "Parent Collection" metafield.
This code doesn't seem to display anything, which to someone who knows what they're doing will probably seem obvious! Could someone please help me to get this working?
{% assign parentcollection = collection.metafields.custom.parent_collection %} <a href="{{ parentcollection.url }}" title="{{ parentcollection.title }}">{{ parentcollection.title }}
Thank you.
To answer my own question it looks simple, I just didn't know where to look to find this out until just now!
{{ collection.metafields.custom.parent_collection.value.title }}
{{ collection.metafields.custom.parent_collection.value.url }}
Shopify 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, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025