Introduction
Shopify Metafields allow you to store extra information (like a “Subtitle,” “Author Biography,” or “Product Color”) that doesn’t fit into the standard blog post fields. With Blog Importer, you can bulk import these extra data points using a simple CSV format.
Why Bulk Import Metafields?
Manual entry for hundreds of articles is time-consuming and error-prone. By using a CSV, you can:
- Migrate WordPress Custom Fields: Automatically convert ACF or other custom data to Shopify Metafields.
- Bulk Update: Rapidly update specific attributes across many articles.
- Maintain Consistency: Ensure data types and values match perfectly.
Step-by-Step Guide
Step 1: Format Metafield Headers in CSV (Automatic Definition Creation)
You no longer need to manually create metafield definitions in Shopify prior to importing. By specifying the metafield namespace, key, and data type in your CSV header, Blog Importer automatically creates any missing definitions during import and saves the values.
Use the following header format:
metafield_[namespace]_[key]:[type]
For example, if your namespace is custom, the key is color, and the type is single_line_text_field, the header should be:
metafield_custom_color:single_line_text_field
- If the definition already exists: Blog Importer reuses your existing Shopify definition. Make sure the type specified in your CSV matches the existing definition.
- Optional manual setup: If you prefer to define metafields manually beforehand, you can still create them in Shopify admin under Settings > Custom data > Blog posts.
Step 2: Match the Data Types Exactly
The :type suffix in the header must match a supported Shopify internal type name. If the type is omitted, the definition cannot be created automatically.
- Correct:
metafield_custom_price:number_decimal - Incorrect:
metafield_custom_price:number(Must be specific)
Refer to the Supported Metafield Types page for a full list of type names.
Step 3: Add Your Data
Populate the rows under your new header with the relevant data:
- For text types: Enter the string as-is.
- For boolean types: Use
trueorfalse. - For file references: Enter the Shopify file GID (e.g.,
gid://shopify/File/12345) or an accessible image URL.
Step 4: Import with Blog Importer
Open the Blog Importer app in your Shopify admin, upload your CSV, and start the import. The app automatically creates any missing metafield definitions and imports their values alongside your blog content.
Important Tip: Automatic Metafield Creation requires a valid, supported type suffix in your CSV header. If a type is omitted, unsupported, or mismatches an existing store definition, the metafield values will be skipped, but article imports will continue normally.
FAQ
Does it support list types?
Yes, for list types, you can often provide comma-separated values or JSON arrays depending on the specific type. We recommend testing with a single row first.
Can I update existing articles?
Yes. If the handle in your CSV matches an existing article, Blog Importer can update the metafields for that article.
Related Guides
Supported Metafield Types
A complete list of supported Shopify metafield types and their CSV format names.
WordPress XML to CSV Conversion
Learn how to convert WordPress data (including custom fields) into this CSV format.
Editing with Spreadsheets
Best practices for managing your blog data using Google Sheets or Excel.