Why can't I name my field "first", "last" or "size"?
Over time, we have found that using the metafield names "first", "last" and "size" is problematic. These names also exist as Liquid filters in Shopify and can be used as a dot notation - see for example: https://shopify.github.io/liquid/filters/size/ Using this construct in Liquid:
can potentially mean any of these:
The value of the "bundle.size" metafield
The length of the namespace name itself - "bundle" = 6
The number of metafields within the namespace "bundle"
To minimize any issues, ACF blocks you from using these custom field names with problematic ambiguous meanings in Liquid.
Last updated