Shopify 6 min read

Shopify metafields and metaobjects explained

What Shopify metafields and metaobjects are, how to create them, connect them to themes with dynamic sources and use them instead of apps.

Usman Muhammad UsmanUpdated October 13, 2026
Shopify metafields and metaobjects explained

Every product in Shopify has standard fields: title, description, price, images and variants. Real stores need more: ingredients, size guides, care instructions, technical specs, designer profiles. Metafields and metaobjects let you add this information in a structured way and display it in your theme without code. They are one of the most useful features for growing stores.

What metafields are

Metafields are custom fields attached to products, variants, collections, customers, orders, pages and other resources. Each has a type, such as single-line text, rich text, number, date, colour, file, product reference or list. For example, a product metafield called ‘Care instructions’ stores text unique to each product.

Metafields keep extra information structured and consistent. Instead of typing details into the description in different formats, staff fill in labelled fields, and the theme displays them in the right place on every product page.

What metaobjects are

Metaobjects are custom content types with their own fields. A ‘Designer’ metaobject might include name, photo, biography and website. You create entries for each designer, then link products to their designer with a metafield reference.

Metaobjects are ideal for content shared between many products or pages: size charts, ingredient profiles, FAQs, store locations or team members. Edit an entry once and it updates everywhere it is used.

Metafields vs metaobjects
MetafieldsMetaobjects
What it isExtra field on a resourceCustom content type
ExampleCare instructionsDesigner profile
Shared contentNo, per itemYes, linked by reference
Edit inProduct adminContent section
DisplayDynamic sourcesDynamic sources or Liquid

Creating definitions

Go to Settings > Custom data and choose the resource, such as Products. Add a definition with a name, namespace and key, type and optional validation rules. Definitions make the field appear in the admin for every product, with the right input type.

Use clear names and descriptions so staff understand what to enter. Validation rules, such as minimum and maximum values or allowed choices, prevent inconsistent data. Plan definitions before creating them, as changing types later can be awkward.

Filling in metafields

Once a definition exists, the field appears at the bottom of each product’s admin page. Staff can fill it in manually, or you can import values in bulk with CSV tools or apps like Matrixify for large catalogues.

Shopify also provides standard metafield definitions for common product attributes in its product taxonomy, such as colour, size and material. Using these helps with filtering, Shopify search and sales channels like Google Shopping.

Displaying with dynamic sources

In Online Store 2.0 themes, many section and block settings can be connected to metafields through dynamic sources. In the theme editor, click the database icon next to a setting and choose the metafield. Each product then shows its own value using one shared template.

For example, a text block in the product template can show the ‘Care instructions’ metafield, and a collapsible tab can show a size chart metaobject. No code is needed, and the layout stays consistent across products.

Using metafields in Liquid

Developers can access metafields in Liquid with product.metafields.namespace.key. This allows more advanced layouts, conditional display and combining several fields. Metaobjects are accessed through references or the metaobjects object.

Custom sections built with Liquid can read metafields directly, which makes them flexible and reusable. My guide to building custom Shopify sections shows how sections and metafields work together.

Metafields for filtering

Shopify’s Search and Discovery app can use product and variant metafields as filters on collection pages, such as filtering by material, fit or compatibility. This is powerful for large catalogues where standard options are not enough.

Make sure metafield values are consistent, for example always ‘Cotton’ rather than mixing ‘cotton’ and ‘100% cotton’, so filters work properly. Use choice lists in definitions to enforce consistency.

Replacing apps with metafields

Many apps exist only to display extra product information, such as size charts, tabs or badges. With metafields, metaobjects and dynamic sources, these features can often be built into the theme with no monthly fee and better performance.

My guide to Shopify apps vs custom code explains when this makes sense. Apps are still useful when features need a backend, such as reviews or subscriptions.

Metafields and SEO

Structured product information helps customers and can support SEO when displayed on the page. Adding specifications, materials and care information in metafields makes product pages more complete and useful. Developers can also include metafield data in structured data where appropriate.

Content hidden in metafields that is not displayed on the page does not help search engines. Make sure important information is visible. See Shopify SEO basics for more.

Metafields for customers and orders

Metafields are not only for products. Customer metafields can store preferences, birthdays or account details used in personalised emails. Order metafields can store gift messages, delivery instructions or internal notes for fulfilment. Collection and page metafields can hold banner images or extra content for specific templates.

Apps and integrations also use metafields to store their data, which is why you may see definitions you did not create. Review them occasionally and remove unused definitions from apps you no longer use. Keeping custom data tidy makes the admin easier for staff and integrations easier to maintain.

Planning your content model

Before creating many metafields, list the extra information each product type needs and where it should appear. Group related fields, decide which content should be shared through metaobjects and choose types carefully. A good content model saves time for years.

If you would like help planning and building metafields and metaobjects for your store, it is part of my Shopify development service. For WordPress, the equivalent is explained in custom post types and fields.

Key takeaways

  • Metafields add structured extra information to products and other resources.
  • Metaobjects store shared content such as size charts or designer profiles.
  • Connect metafields to theme settings with dynamic sources, no code needed.
  • Plan definitions and keep values consistent for filtering and display.

Frequently asked questions

Are metafields free?

Yes. Metafields and metaobjects are included in all Shopify plans.

Do I need an app to use metafields?

No. Create definitions in Settings > Custom data and connect them in the theme editor.

Can metafields be used for filtering?

Yes, with the Search and Discovery app for product and variant metafields.

Can I import metafields in bulk?

Yes, with CSV tools or apps such as Matrixify.

What is a namespace and key?

They identify a metafield, for example custom.care_instructions, and are used in Liquid and integrations.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on Shopify

All Shopify articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.