shop metaobject value get on product page in loop

Topic summary

A developer is working with Shopify metaobjects to display custom data on product pages. They’re attempting to loop through a metafield (product.metafields.custom.select_list_icon.value) to access:

  • Text values (data.text)
  • Icon image URLs (data.select_icon_image | file_url)

The code snippet shows nested loops:

  1. Iterating through product-level metafield values
  2. Accessing global shop metaobjects (shop.metaobjects.metaobject-name.values)
  3. Retrieving author data (data.author)

The post appears to contain reversed/encoded Liquid template syntax (likely a formatting issue), making it difficult to determine if this is a question seeking help or a solution being shared. No responses or resolution are present yet.

Summarized with AI on November 12. AI used: claude-sonnet-4-5-20250929.

{% for data in product.metafields.custom.select_list_icon.value %}
{{ data.text }} -
{{ data.select_icon_image | file_url }}

{% endfor %}

globally for shop
{% for data in shop.metaobjects.metaobject-name.values %}
{{ data.author }}
{% endfor %}