Showing a collection title chosen in product metafield, and jumping to the collection. possible?

I created a metafield of collection select type with namespace and key : “product.metafields.custom._collection-pick”.

I want to create a textblock on product detail page that displays the title of the selected collection on the product page and when clicked on the title jumps to that collection page.

Please help mine~

Hey, @Ignasi

Happy to lend a hand here and point you in the right direction. Do you have an example that you could share (link or screenshot) that highlights what you’re exactly looking to accomplish?

We can go from there! If there is anything else I can help you with, please let me know.

Yap, this is what I want. hope you get it clearly.

Perfectiongeeks is one of the best award-winning app development companies in India, USA, and Singapore for Startups and Enterprises. Call now!

Mitchellhobb, first of all, you said ‘it’s possible’, which gave me hopp^^.

However, I still can’t take any action with the above description alone.

If there’s one hint, I am using Shopify’s Baseline theme.

Could you please give me some clearer code?

{% assign custom_collection = product.metafields.custom.collection_name.value %} 
{% comment %}
  {{ custom_collection.title }} - returns collection title  
  {{ custom_collection.url }} - returns collection URL 
{% endcomment %}

  {{ custom_collection.title }}

{% assign custom_collection = product.metafields.custom.collection_name.value %} 
{% comment %}
  {{ custom_collection.title }} - returns collection title  
  {{ custom_collection.url }} - returns collection URL 
{% endcomment %}
<a href="{{ custom_collection.url }}">
  {{ custom_collection.title }}
</a>