# Metaobjects

If your data is best represented by multiple fields, you can use a metaobject to create an object with multiple fields. Your metaobject can be referenced by metafields or used stand-alone.

## Why use Metaobjects

Consider these examples for using metaobjects in your store:

* If you want to highlight the key features of your products, then you might create a metaobject called <kbd>Product highlight</kbd>. You can then include fields for an icon, title, and description, and display a unique set of highlights for each product in your theme.
* If you have a beauty and skincare store and you want to capture and display information about your top influencers, then you might create a metaobject called <kbd>Influencer profile</kbd>. You can then include fields for a headline, image, description, and profile link, and create an entry for each influencer. You can display the influencer profile metaobject in your theme, or use it in your Shopify admin.
* If you want to address common questions about your products or policies, then you might create a metaobject called <kbd>FAQ</kbd>. You can then include fields for a question and answer, create an entry for each frequently asked question, and display them in a dedicated section of your theme.
* If you participate in trade shows or live events and you want to showcase your event history, then you might create a metaobject called <kbd>Event appearance</kbd>. You can then include fields for an event name, location, year, and description, and create an entry for each event. You can display your event history on your storefront to show customers and organizers that you have experience at scale.

<aside class="note sidekick"><h4>Sidekick</h4><p>You can <a href="https://admin.shopify.com/sidekick">ask Sidekick</a> how metaobjects could work for your store, and for the steps to set them up. Use a prompt such as <kbd>Suggest a metaobject structure for my size guides</kbd>.</p>
</aside>

## How to use Metaobjects

You can retrieve and edit the data that's stored in metaobjects from the Shopify admin. Apps can access metaobjects through the metaobject API. You can also access metaobjects in themes using Liquid and through the Storefront API. Learn more about the [metaobject API](https://shopify.dev/docs/api/storefront/2023-07/objects/metaobject).

There are two key components to metaobjects:

* Definition: the group of fields that defines the object’s structure. This is managed in **Settings** > **Custom data** in your Shopify admin.
* Entries: the content or data for the metaobject. Entries are created and managed in **Content** > **Metaobjects** in your Shopify admin.

When you create a metaobject definition, you specify the following information:

- **Name**: used to identify the metaobject in your Shopify admin, such as `Authors`.
- **Type**: a unique identifier for the metaobject, automatically generated from the name. You can edit the type identifier before saving.
- **Fields**: define the content you want to store in the metaobject.
    - Each field has a name (required), description, and type. You select a field type from a searchable list of categories and presets, such as text, file, or URL.
    - Optional: You can add validation rules, such as character limits, minimum and maximum values, or preset values.
    - **Display name** is assigned to a single field name and is used to identify an individual metaobject entry. You can change the field that the display name is assigned to at any time. The display name is automatically assigned to the first text field in a metaobject entry, or autogenerated if there are no text fields in the metaobject definition.
    - **Display thumbnail** is assigned to a single field and is used as a visual preview of an individual metaobject entry in supported areas of the Shopify admin. It's automatically selected from the color, image, and video fields in the metaobject definition, or you can choose the field if the **Display thumbnail** row is available for your store.
    - For example, you might add a field for text and indicate it as a display name, a field for an image, and a field for color.
- **Options**: where the metaobject is available to use. Learn more about [options for custom data](https://help.shopify.com/en/manual/custom-data/options.md).


The fields in your metaobject definition determine the fields in your metaobject entries. For example, if you create a metaobject for ambassador program profiles with a name, biography, an image for the fields, then your metaobject entries will have a field to enter the name, biography, and upload an image. Every entry in this example would be a single ambassador program profile.

If the **Display thumbnail** row is available for your store, then you can select a field in it to provide a visual preview of each entry in supported areas of the Shopify admin. The display thumbnail is separate from the display name, which identifies the entry with text.

Shopify's Standard Product Taxonomy and standard categories use metaobjects. When you add a product category to a product, you can add [category metafields](https://help.shopify.com/en/manual/custom-data/metafields/category-metafields.md) specific to that product. Each category metafield has default [entries](https://help.shopify.com/en/manual/custom-data/metaobjects/creating-entries.md), which is built with metaobject definitions. For example, if you add the product category <code>Apparel & Accessories > Clothing > Clothing Tops > Shirts</code>, then you can add category metafields for <code>size</code>, <code>neckline</code>, <code>sleeve length type</code>, <code>top length type</code>, <code>age group</code>, <code>fabric</code>, <code>target gender</code>, <code>clothing features</code>, and <code>color</code>.

### In this section

- [Building a metaobject](https://help.shopify.com/en/manual/custom-data/metaobjects/building-a-metaobject.md)
- [Creating metaobject entries](https://help.shopify.com/en/manual/custom-data/metaobjects/creating-entries.md)
- [Referencing metaobjects](https://help.shopify.com/en/manual/custom-data/metaobjects/referencing-metaobjects.md)
- [Displaying metaobjects on your online store](https://help.shopify.com/en/manual/custom-data/metaobjects/connecting-to-your-online-store.md)
