Can we link the automatic “Category Metafields” that shows up under a product listing to a liquid code? It shows up between the variant and metafield option when you add a product page:
here is is under the metafield product option and also the content > metaobject area:
I want to be able to use it in a liquid code so it will show an icon if its been selected. For example, if the product category metafield “dietary-preference” is “vegan” in its list then show the “vegan” SVG icon.
if {{ shop.metaobjects[‘shopify–dietary-preferences’][‘vegan’] }} is selected then show icon.
Is this possible?


