Shopify Metafields and Metaobjects Explained (With Examples)

By Shopify Development

3 min read

Key takeaways

  • Metafields add custom fields to products, variants, collections, customers, orders and more.
  • Metaobjects are reusable custom content types — such as size charts, designers or ingredients — that many products can reference.
  • Definitions give each field a type and validation, so the data stays clean and appears in the theme editor.
  • Plan your content model before you design: it decides how flexible the theme can be.
  • Structured data in metafields also feeds filters, search and marketing feeds.

Every store eventually needs product information that Shopify's standard fields don't cover: materials, care instructions, dimensions, compatible models, a size guide or an ingredient list. Metafields and metaobjects are Shopify's built-in way to store that information as structured data — and to show it in your theme without hard-coding it.

What are Shopify metafields?

A metafield is a custom field attached to a Shopify resource — a product, variant, collection, customer, order, page, blog post or the shop itself. You create a definition in Settings → Custom data, choose a type and add validation. The field then appears on every item of that type in the admin.

  • Common types: Single-line text, rich text, number, date, true or false, URL, colour, file, rating and references to products, collections, pages or metaobjects.
  • Lists: Most types can be lists — for example several care instructions or several compatible products.
  • Validation: Limits such as minimum and maximum values or a set of allowed choices keep the data consistent.

What are metaobjects?

A metaobject is a custom content type with its own fields — think of it as a mini database table you design. You define it once (for example, a Designer with a name, photo and biography) and create entries. Products then reference those entries through a metafield, so the same designer profile appears on every product they made, and an update in one place changes it everywhere. Metaobject entries can also have their own web pages.

Real examples

  • Fashion: A size chart metaobject referenced by every product in a range, plus fabric and fit metafields.
  • Beauty and wellness: Ingredient metaobjects with descriptions, used across many products and filterable in collections.
  • Furniture: Dimension and material metafields, and a care guide metaobject per material.
  • Electronics: Specification metafields and a list of compatible models for accessories.
  • Any store: FAQ entries, delivery messages or trust badges managed as metaobjects instead of hard-coded text.

Showing metafields in your theme

In an Online Store 2.0 theme, most section settings can connect to metafields as dynamic sources — no code needed. For richer layouts, a developer reads them in Liquid (for example product.metafields.custom.material) and builds sections around them.

How to plan your content model

  1. List the information customers ask about before they buy.
  2. Decide what belongs to one product (a metafield) and what is shared by many (a metaobject).
  3. Choose strict types and validation, so data can be filtered and reused later.
  4. Name fields clearly and document them for your team.
  5. Bulk-fill existing products with a spreadsheet import before launch.

Structured product data pays off beyond the product page: it powers collection filters, search, product feeds for Google Shopping and even answers in AI search. If you are planning a rebuild, design the content model first — our Shopify store development service starts there. Talk to us about your catalogue.

Start a project

Let's build yours Let's build yours

Tell us where you are — a new build, a migration or a project that has stopped moving. You get a fixed scope and a plan in writing, not a sales call.

  • Fixed quote in 48 hoursScope, milestones and price in writing before anything starts.
  • No obligationThe plan is yours to keep, even if you build it somewhere else.
  • Straight to the teamYou talk to the people who design and build it, not an account manager.