Shopify Metaobjects: What They Are and How to Use Them in Liquid

F
Faisal Hourani
| 11 min read min read
Shopify Metaobjects: What They Are and How to Use Them in Liquid — LiquidBoost Blog

Your theme can't model everything.

A size chart with six measurements. An ingredient list with nutrition facts. A team of authors, each with a bio and photo. None of that fits into a single product field. Shopify built a feature for exactly this gap, and most store owners have never touched it.

Close-up of hands typing on a laptop keyboard, the kind of Liquid work needed to render a metaobject on the storefront

What Are Shopify Metaobjects?

A metaobject is a custom data structure with multiple related fields that you define once and reuse across your store.

A Shopify metaobject is a reusable, standalone content type made of several related fields, such as a size chart or author profile. Per Shopify's developer documentation, each metaobject has an ID, a handle, a display name, and a set of field values defined by its metaobject definition. Unlike a single custom field, it models a whole entity.

Think of a metaobject as a mini content type you invent. Shopify ships with products, collections, and pages built in. Metaobjects let you add your own: "size_chart," "ingredient," "team_member," "warranty." Each one is a template (the definition) plus however many filled-in copies (the entries) you create from it.

Once a metaobject exists, you can reference the same entry from multiple products, pages, or blog posts without re-entering the data. Update the entry once, and every page that references it updates automatically.

How Are Metaobjects Different From Shopify Metafields?

Metafields and metaobjects solve related but different problems, and mixing them up leads to the wrong tool for the job.

Metafields add a single custom field to an existing resource; metaobjects create an entirely new, standalone data type with multiple fields. Per Shopify's own framing, "metaobjects create complex data structures with multiple related fields," while a metafield adds one value to a product, page, or collection that already exists. If you've worked with Shopify metafields before, metaobjects are the next layer up.

A metafield answers "what's the warranty length for this product?" with one value. A metaobject answers "what does our full warranty policy look like, with terms, duration, and a support contact, reused across 40 products?" with a structured entry you build once.

Metafield Metaobject
What it is A single custom field A standalone structure with multiple fields
Attached to An existing resource (product, page, collection) Nothing by default — exists on its own
Reusable across pages? Only by re-adding it Yes, by referencing the same entry
Good for One extra value, like a care instruction A whole entity, like an author profile or size chart
Created via Shopify admin or API Shopify admin (merchant-owned) or app config (app-owned)

The two work together constantly. A product's size_chart metafield typically stores a reference to a metaobject entry, not raw data. The metafield points; the metaobject holds the structure.

How Do You Create a Metaobject Definition in Shopify?

Before you can create any metaobject entries, you define the shape they'll take.

You create a metaobject definition first, which sets the type name, fields, and access rules; then you create individual entries from that definition. Per Shopify, one definition supports unlimited entries. An "author" definition, for example, can produce metaobjects for every writer on your blog, each with its own name, bio, and photo.

For store owners managing their own data (not app developers), this happens in the Shopify admin under Settings > Custom data > Metaobjects, with no code required:

  1. Name the type. Give it a clear identifier like size_chart or team_member. This becomes the type Liquid references later.
  2. Add fields. Choose a data type for each field: single line text, multi-line text, number, image, file, URL, boolean, date, color, or a reference to another resource (product, page, another metaobject).
  3. Set the display name field. Pick which field shows as the entry's label in the admin list, typically the name or title field.
  4. Decide access. Merchant-owned metaobjects created in the admin are editable by store staff and readable by any installed app or the storefront, once exposed.
  5. Save and start adding entries. Each entry fills in real values for the fields you defined. A "size_chart" definition with chest, waist, and length fields might get entries for "Men's Tee" and "Women's Dress."

Developers building an app-owned metaobject instead define the type in shopify.app.toml and create entries through the GraphQL Admin API — useful when the structure needs to ship with an app rather than live per-store.

A well-organized warehouse shelving unit with numbered bins for efficient storage, the same way a metaobject definition organizes fields into one reusable structure

How Do You Render a Metaobject in Liquid?

A metaobject definition and its entries do nothing on the storefront until Liquid pulls them in.

You render a metaobject in Liquid by referencing it through a metafield, or by looping over all entries of a type with shop.metaobjects. The fields on a fetched entry are accessed as entry.fields.field_key.value. This is the same pattern that powers the metafield reference pattern described in Shopify's Liquid object docs.

Pattern 1: A product metafield that references one metaobject entry.

{% assign chart = product.metafields.custom.size_chart.value %}
{% if chart %}
  <table class="size-chart">
    <tr>
      <th>Chest</th>
      <td>{{ chart.fields.chest.value }}</td>
    </tr>
    <tr>
      <th>Waist</th>
      <td>{{ chart.fields.waist.value }}</td>
    </tr>
  </table>
{% endif %}

Pattern 2: Looping over every entry of a metaobject type.

{% for member in shop.metaobjects.team_member.values %}
  <div class="team-card">
    <img src="{{ member.fields.photo.value | image_url: width: 400 }}" alt="{{ member.fields.name.value }}">
    <h3>{{ member.fields.name.value }}</h3>
    <p>{{ member.fields.bio.value }}</p>
  </div>
{% endfor %}

Both patterns use the dot notation fields.<field_key>.value, since every field value sits one level deeper than the entry itself. Reference-type fields (image, file, product, another metaobject) need an extra accessor depending on the field, so check the field type before assuming .value returns the raw string.

Already have a bundle of bundle snippets or related-item Liquid working from metafields? If assembling this from scratch is eating your week, LiquidBoost's marketplace has tested, drop-in snippets for size charts, team sections, and other metaobject-powered layouts. One-time purchase, no monthly app fee, install in minutes.

What Can You Build With Shopify Metaobjects?

Metaobjects earn their keep on any content that's structured, repeated, and currently missing from your theme.

Common metaobject use cases include size charts, author bios, ingredient or nutrition lists, warranty terms, FAQ entries, and team member profiles. Shopify names size charts, author profiles, and ingredient lists with nutritional data directly in its own documentation as canonical examples, because each one has multiple related fields that repeat across many products or pages.

Specific patterns that fit well:

  • Size charts. One definition with measurement fields, one entry per garment type, referenced from dozens of product pages.
  • Author or team profiles. Name, photo, bio, and role fields, reused across blog posts or an "about" page.
  • Ingredient and nutrition data. Useful for food, beauty, and supplement stores that need structured, filterable ingredient lists rather than a paragraph of text.
  • Warranty and policy blocks. A reusable policy entry referenced from every product that carries the same terms, instead of copy-pasted text per listing.
  • FAQ entries. Question and answer pairs stored as metaobjects, pulled onto product pages or a dedicated FAQ hub without duplicating content.
  • Store locator or location data. Address, hours, and contact fields per location, for stores with physical retail alongside Shopify.

The common thread: if you're copy-pasting the same block of structured information across multiple pages today, it belongs in a metaobject instead.

A woman shopping for clothing on her phone, the kind of storefront page a metaobject-powered size chart or FAQ section renders onto

How Do You Link a Metaobject to a Product, Page, or Collection?

A metaobject entry only shows up where you tell it to.

You link a metaobject to a resource by adding a metafield of type "metaobject reference" to that resource, then selecting (or setting via API) the specific entry. This is the mechanism behind Pattern 1 above: the product doesn't hold the size chart data itself, it holds a pointer to the metaobject entry that does.

In practice:

  1. Create a metafield definition on the product (or page, collection, variant) with type "Metaobject reference," scoped to your metaobject type (for example, size_chart).
  2. On each product's admin page, select which size chart entry applies — "Men's Tee" for one product, "Women's Dress" for another.
  3. In Liquid, access it exactly like a normal metafield: product.metafields.custom.size_chart.value returns the full metaobject entry, with every field available underneath.

A single metaobject entry can be referenced by any number of products. Update the ingredient list once on the metaobject entry, and every product referencing it reflects the change immediately, with no per-product edits.

What Mistakes Do Store Owners Make With Metaobjects?

A few patterns cause the most support tickets and broken storefronts, based on common Liquid questions on this topic.

The most common metaobject mistakes are using a metafield where a metaobject belongs, forgetting storefront access permissions, and assuming every field returns a plain string. Each one produces a silent failure, a blank section, rather than a visible error, which is why they're easy to ship without noticing.

  1. Treating metaobjects as a metafield. Adding fields directly to a product when the data actually repeats across many products. If you're about to copy-paste the same structure a third time, that's the signal to build a metaobject instead.
  2. Forgetting to expose the field on the storefront. A metafield or metaobject field can exist in the admin but not be readable by the theme unless its access settings allow storefront reads. Check access before assuming the Liquid code is wrong.
  3. Assuming .value always returns a plain string. Image, file, and reference-type fields need their own accessor (image_url, nested .fields, and so on). Treating every field like plain text throws silent template errors.
  4. Skipping the display name field. Without a clear display name, every entry in the admin list shows up as an unreadable ID, making it painful for non-technical staff to manage content later.
  5. Not validating before publishing. A metaobject entry missing a required field can render blank on the storefront instead of throwing a visible error. Preview the template after adding each new entry, not just after building the definition.

Hands writing an ingredients list in a notebook in a kitchen, the kind of structured recipe data a Shopify metaobject can model and reuse across product pages

Frequently Asked Questions

What is a Shopify metaobject?

A Shopify metaobject is a custom, reusable data structure with multiple related fields, such as a size chart or author bio. Unlike a metafield, which adds one value to an existing resource, a metaobject is a standalone entity you can reference from any number of products or pages.

Are metaobjects available on every Shopify plan?

Metaobjects are built into Online Store 2.0 themes and the Shopify admin's Custom data settings, available to merchant accounts without a separate app. Check your specific plan's current feature list in Shopify's admin, since platform feature availability can change by plan tier.

Can I use metaobjects without writing code?

Yes, for the definition and data entry. Creating a metaobject type and filling in entries happens entirely in the Shopify admin. Rendering those entries on your storefront, however, requires Liquid code in your theme template.

How is a metaobject different from a metafield?

A metafield attaches one custom value to an existing resource, like a product or page. A metaobject is a new, standalone data type with several fields of its own, referenced from any resource rather than attached to just one. Most stores use both together.

Can one metaobject entry be linked to multiple products?

Yes. A single metaobject entry, such as one size chart, can be referenced by a metafield on any number of products. Updating the entry once updates every product that references it, with no per-product edits required.


Ready to skip the Liquid work?

Metaobjects store the structure; Liquid still has to render it correctly, with fallback states for missing fields and the right accessor for every field type. A tested, pre-built snippet gets you the finished layout without the hours of trial and error that custom reference-field code usually takes.

Metaobjects are powerful, but wiring the reference fields, the fallback states, and the rendering logic correctly takes real development time.

Browse LiquidBoost's snippet marketplace →

One-time purchase per snippet. No monthly fees. Install in under 5 minutes.

Keep Reading

Share
Boost Your Shopify Store

Ready to Implement What You've Learned?

Boost your Shopify store's performance with our ready-to-use code snippets. No coding required — just copy, paste, and watch your conversion rates improve.

Explore Snippets
Instant Implementation
No Coding Required
Conversion Optimized
24/7 Support

Related Articles

Stay Up-to-Date with Shopify Insights

Subscribe to our newsletter for the latest trends, tips, and strategies to boost your Shopify store performance.