Metafield not displaying on frontend

Topic summary

A user is experiencing an issue where a metafield added to a collection page returns a null value and doesn’t display on the storefront, despite adding code to render it.

Technical Details:

  • The user implemented code using {{ collection.metafields.description.new }} with a default fallback message
  • Screenshots and a preview link were shared showing the setup
  • JSON output of {{ collection }} was provided for troubleshooting

Attempted Solutions:

  • Another user suggested trying {{ collection.metafields.description.value.new }}
  • The original poster tested this code and an updated version from Shopify, but both still display nothing

Current Status:
The issue remains unresolved. The metafield is configured but not rendering any value on the frontend, suggesting a potential problem with the metafield namespace, definition, or how the value is being accessed in the Liquid code.

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

Hi. I have added metafield in the collection page but it is not showing on the frontend. It says null value.

I have also added code to display them on the collection page.

#### 
  Metafield Value: {{ collection.metafields.description.new | default: 'No subheading description set.' }}

 

{{ collection | json }}


This is the preview page link.
https://htcwr181d5hhw3u4-38506397828.shopifypreview.com/

@Danish864 please try

{{ collection.metafields.description.new.value | default: 'No subheading description set.' }}

I have added your code but it still showing nothing.

{{ collection.metafields.description.new.value | default: ‘Updated code from shopify, still nothing’ }}