Now is your last chance to buy a lifetime license before we switch to annual pricing. Existing licenses will be unaffected.
read more
Posted on February 22, 2024

A Complete Guide to Importing Data into Meta Box Custom Fields

hello world!

Meta Box is a free WordPress custom fields plugin and framework that lets you customize your website with meta boxes and custom fields. In addition to the main plugin and 13 free extensions, it also offers 20 paid extensions. For more information, see Meta Box Custom Fields.

WP All Import is the market leader for importing all types of WooCommerce data and WordPress data. They provide a Meta Box Import Add-On that allows you to quickly and easily import data into Meta Box custom fields. For a complete list of features, see Import to Meta Box From Any CSV, Excel, or XML Feed.

In this guide, we'll tell you everything you need to know about using this add-on.

Table of Contents

Importing Data into Meta Box Custom Fields — The Basics

Step 1: Create a New Import

Navigate to All Import › New Import and load your import data. In this example, we're uploading a local file:

You can also use an existing file that's already on your server or download a file from a URL or FTP/SFTP site.

Next, select New Items unless you specifically intend to update the data already in your custom fields, in which case you should select Existing Items. This will impact some of your interface options later in the process.

Finally, select the post type for your import, i.e., the one that contains the Meta Box fields that you're trying to populate. In this example, we selected the custom post type of Properties.

When you've completed these selections, click Continue to Step 2.

Step 2: Review the Import Data

The Review Import File screen will appear next. It lets you confirm that the import data is acceptable.

If the data has major problems, fix the file and try again. But if it has only minor layout or formatting issues or is already perfect for your import, click Continue to Step 3.

The reason that you can ignore minor layout and formatting issues is that WP All Import has several powerful features to modify incoming data during the import.

Step 3: Map the Import Data to the Meta Box Fields

The Drag & Drop screen is up next. This screen lets you map incoming data elements, shown on the right, to their corresponding WordPress fields, shown on the left. Here, we're mapping import data to the main Properties fields:

You use the same mapping mechanism for the Meta Box custom fields. Just scroll down, expand the Meta Box Add-On Section, and treat the custom fields the same way you do standard fields:

This is one of the great advantages of using WP All Import: it lets you handle fields of every type using the same process.

When you've finished mapping your import data, click Continue to Step 4 (not shown).

Step 4: Update the Import Settings

As the name implies, the Import Settings screen lets you control several important settings, starting with the Unique Identifier, which helps WP All Import identify records so that it can perform updates and avoid creating duplicates.

The best way to generate a Unique Identifier is to click the Auto-detect button:

Several more settings are available midway down the screen. These let you dictate whether an import should create, update, or remove existing records. When updating existing records, you can even specify what happens to each field, though this isn't shown in the above image.

Farther down the screen, you can use the Scheduling Options section to configure your import to run automatically.

Below this, you can use the Configure Advanced Settings section to control the batch processing size for the import, whether to split your import file into chunks, and other options that may improve performance.

Leave these settings alone for now and click the Continue button.

Step 5: Finish the Import and Verify the Results

The last screen in the process is the Confirm & Run screen, which describes what will happen during the pending import. If everything looks okay, click the Confirm & Run Import button. If there is a problem, click the or go back to Step 4 link at the bottom to return to the previous step.

WP All Import will update the screen as soon as the import completes:

Assuming that all went well, your last step should be to verify this in the WordPress interface by checking a few of the new or updated records.

Exploring the Meta Box Custom Field Types

WP All Import supports the following Meta Box custom field types:

Click on your field of interest to learn more about importing data into it.

If you want to see the import details for all the custom field types in one place, see Import Details for Each Meta Box Custom Field Type.

What File Formats Can I Use to Import My Meta Box Data?

You can import data from CSV, XML, JSON, Excel, and many other file types. If you're uncertain, just contact WP All Import's Support department.

What If the Import Data Doesn't Match My Meta Box Field Requirements?

It depends on what is wrong with the data. If there are data elements missing or they contain erroneous data, there is nothing you can do about that except obtain a new import file with the correct data.

However, if the basic data is okay but lacks the correct layout or formatting, this is typically not a problem, as WP All Import offers several features to help you modify the data during the import.

For example, you can map several incoming data elements to the same field and even insert literal values between or around them:

Importing Data into JetEngine Custom Fields - Mapping Multiple Fields

You can also apply standard PHP functions to incoming data elements, such as this str_replace() function that is being used to remove commas from the title data element.

Importing Data into JetEngine Custom Fields - Standard PHP Functions

There are many of these standard functions, giving you the ability to modify your incoming data in sophisticated ways.

If this isn't sufficient, you can even create custom PHP functions in the Function Editor.

You can then apply these custom functions to incoming data elements just like you would a standard PHP function.

There are very few data layout or formatting issues that you can't address with these tools. To learn more, see Using PHP to Extend WP All Import's Functionality.

How Do I Filter Meta Box Imports?

You can filter your imports in the Add Filtering Options section of the Review Import File screen. Each filter rule consists of three components:

  • The incoming data Element that you wish to apply the filter to;
  • The Rule;
  • The filter Value, if applicable;

Here, we're including records only where the interestedin element equals "Sales Team":

Importing Data into JetEngine Custom Fields - Add Filter Rules

You can also combine two or more filter rules by separating them with either the AND or OR operator. In this example, we're telling WP All Import to filter the import data for any records where the category element contains either "NYC" OR "New York City":

Importing Data into JetEngine Custom Fields - Combo Filters

You can build even more sophisticated filters by nesting filter rules, which is the equivalent of using parentheses:

Importing Data into JetEngine Custom Fields - Nested Filters

Note that data intended for Meta Box custom fields is not treated any differently in filters than data intended for standard fields.

For more information, see Filtering Import Data with XPath.

How Do I Update the Data in My Existing Meta Box Fields?

To update data that's already in your existing Meta Box fields, choose the Existing Items option when creating your import:

Importing Data into JetEngine Custom Fields - Existing Items

When you get to the Import Settings screen, you'll then see a section that lets you specify how to match the incoming data to your existing records:

Importing Data into JetEngine Custom Fields - Merging Data

Finally, just specify which fields you want to update:

Importing Data into JetEngine Custom Fields - Update Specific Fields

To learn more, see Recurring Imports Overview.

How Do I Schedule Meta Box Imports to Run Automatically?

You have two options to schedule your imports:

  • WP All Import's Automatic Scheduling service;
  • manual scheduling.

The Automatic Scheduling service is the most convenient but costs $9 per month. You can configure this in the Scheduling Options section of the Import Settings screen:

The settings are straightforward. Here, we've scheduled our import to run every Tuesday at 1:00 a.m. New York City time. In addition to an easy setup, this service will also verify that your import is completed on time.

Manual scheduling is free but requires you to manually set up cron jobs on your server:

Scheduling is most often used for recurring imports. To learn more, see Recurring Imports Overview.

Can I Import Data into Meta Box Fields Using Other Languages?

Yes. This is done using the WPML plugin. For detailed instructions, see Importing Multiple Languages with WP All Import and WPML.

How to Export Meta Box Custom Fields

How to Import Meta Box Custom Fields

Leave a Reply

Your email address will not be published. Required fields are marked *

Get Oxygen Today

Lifetime, unlimited site license

Copyright © 2024 Soflyy
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram