How to fix a multi-line text Metafield now showing in Shopify

Here’s how to how to fix a multi-line text Metafield now showing in Shopify. It’s not really a fix, more like the correct way to display this field inside a Liquid file. When trying to display a custom Metafield of a product in Shopify the documentation online indicates the correct way is to use this format:

{{ product.metafields.{namespace}.{meta_field_name}.value }}

Example: {{ product.metafields.global.meta_product_summary.value }}.

This format works great for single line Metafields, but when trying to do this with a multi-line Metafield nothing is going to show up. Instead, all you have to do is drop the .value from your code and the multi-line text will now show up. Even though the Metafield App will give you a text string with .value when you click ‘Copy liquid code’ that only works for single line Metafields.

Here’s an example for a product that has a meta_product_summary Metafield:

{{ product.metafields.global.meta_product_summary}}.

That’s all!