Metafields not working in custom content HTML blocks

I want to add some metafields to a HTML custom content block on collection pages. When I hit connect dynamic source it says ‘no compatible fields’ even though I have made collection metafields. To get around this, I have added the metafields name to the code in the below format, however it is still not showing up (this has worked on another shopify store I own so not sure why it doesn’t work here).

{{ collection.metafields.custom.visible_seo_text.value }}

Below is the full code I am using. I want to have one sentence, then a ‘read more’ button to reveal the rest of the text, using two metafields -collection.metafields.custom.visible_seo_text that appears before the ‘read more’ button and custom.hidden_seo_text that appears after the ‘read more’ button.

{{ custom.bottom_page_seo_headling.value }}... {{ custom.bottom_page_seo }}

Read more

Hi @tazandtez ,

Can you share your store url

Hello @tazandtez

Please use the following HTML:


{{ collection.metafields.custom.bottom_page_seo_headling.value }}... {{ collection.metafields.custom.bottom_page_seo }}