Meta Box Custom Field – Cloneable

We can create Meta Box Custom fields as cloneable (repeatable). This will create a repeater of the field.

The Ultimate CSV Importer can now import cloneable fields. Click on the Meta box – Custom Field section and create a Custom post.

Under this, we can see the option called ‘Cloneable’. Click on the checkbox to enable this.

Metobox Field

The multiple values are separated using pipeline (|) separator.

Let’s consider that we created a text field with a cloneable option.

Then the values should be like this in CSV file – Text1|Text2|Text3

Number field – 123|435|904

Create a Checkbox list with size like S,M,L,XL

For multiples values use comma (,) separator and for clone field values use Pipeline (|) separator.

Checkbox list – S,L|XL|M,L

 

Importing Meta Box Field clone

Step 1: Create new custom fields in Meta Box. Click on the “Add New” at the top of the page to create a field.

Metobox clone

Step 2: Create a CSV file containing the Meta Box fields details.

Step 3: Import a CSV file from the dashboard using WP Ultimate CSV importer. Choose the post type under ‘import each record as’.

Metobox field clone

Step 4: Map the required fields in the mapping section.

Meta Box Filed Clone mapping

Step 5: The next step is media handling. Depending on your requirements, configure the options.

Step 6: Run the ‘import’ to finish the process.

After import the result will be display as,

Meta Box Field clone after import

Meta Box field Clone after import

When we create a Meta Box Field, we need to give the location where these fields are displayed.

For this, Go to the Meta Box field we created where we can see the option “Settings”.

Mention the location using the dropdown arrow. we can select one location at a time.

Meta Box Field Location

We can add Meta Box fields to posts,pages,custom posts,woocommerce products, etc.

 

Meta Box Group

Meta Box Group allows for the creation of a set of subfields. For this, you need to download and install the Meta Box Group plugin orelse you should have Meta Box AIO. 

The Ultimate CSV Importer can now import Meta Box Group fields.

Once the plugin is installed click on the Custom Field tab in Meta Box and create a group field and Click on publish/update to add respective fields in the post/custom posts.

Meta box Group

Once we select the type as Group we can see the new option called ‘sub field’, where we can create a no. of sub-fields by add field.

Meta Box group create

Create a CSV file with Meta Box Group field values and import them using WP Ultimate CSV Importer.

In the mapping section, map the required fields in the Meta Box Group field.

And run the import.

After Import the result will be display as,

Meta Box Group after importMeta Box Group CSV

 

Meta Box Group – Subfield Cloneable

WP ultimate CSV importer can import any Meta Box Group values and also can create a cloneable option in subfields. 

For this option, we have to enable the cloneable option in the subfield.

To create a CSV file check the following.

We need to add the required field names as a column in the CSV file.

For Group subfields, use the Comma (,) separator for multiple values and Arrow (->) separator for cloneable fields.

For E.g. let’s create a group field with Text (Mobile Name) & Radio button (Ram – 12GB or 6GB) as a subfield.

  1. Samsung – 12GB
  2. iPhone    –  12GB
  3. Moto       –  6GB

Along with your post details add two additional columns in your CSV file – one for Mobile Name(Text – Cloneable) & other for Ram (Radio button – cloneable). Now mention the values with Arrow (->)  separator.

  • Mobile Name – Samsung->iphone->Moto
  • Ram – 12GB->12GB->6GB

Meta Box Group subfield clone

CSV values for Meta Box Group – Subfield clone

WP Fields Description and CSV value Sample value in CSV file
Text Add your single line text

Use the Arrow (->) separator for cloneable fields.

Mobile,MacBook->Cars->Bikes
Text Area Add your paragraph with multiple lines

Use the Arrow (->) separator for cloneable fields.

Find the latest smartphones and feature phones launched across the world->Check the upcoming cars and bikes
Number Mention the number for a product.

Use the Arrow (->) separator for cloneable fields.

387489->423321->89420
Radio Button Specify the Radio button value.

12GB:12gb

6GB:6gb

Use the Arrow (->) separator for cloneable fields.

12gb->6gb
URL Specify the url 

Use the Arrow (->) separator for cloneable fields.

https://www.smackcoders.com/->

https://www.smackcoders.com/wp-ultimate-csv-importer-pro.html

Select Specify the select fields value.

red:Red

black:Black

Use the Arrow (->) separator for cloneable fields.

Black->Red
Select Advanced We can select mutiple values in the select field.

Use the Arrow (->) separator for cloneable fields.

Red->White->Blue
Password Mention the password

Use the Arrow (->) separator for cloneable fields.

[email protected]>ahjdkk1211
Checkbox To enable the checkbox, mention the value as 1.

Use the Arrow (->) separator for cloneable fields.

1->0->1
Checkbox list Specify the values for the checkbox field.

choose1:Choose1

choose 2:Choose 2

For multiple values use comma (,) separator and Use the Arrow (->) separator for cloneable fields.

Choose1,Choose2->Choose1->Choose2
Button Group Specify the value for the button field.

E.g: 1,2,3

Use the Arrow (->) separator for cloneable fields.

2->3->1
Image Select Specify the image url.

Use the Arrow (->) separator for cloneable fields.

https://cdn.smackcoders.com/wp-content/uploads/2020/12/wp-ultimate-csv-importer-nextgen-gallery-import-1024×614-1-1.png->https://cdn.smackcoders.com/wp-content/uploads/2020/12/update_export_images_with_metadata_using_csv_importer_pro.jpg
oEmbed Specify the Video URL.

Use the Arrow (->) separator for cloneable fields.

https://youtu.be/4wA2r_yqGKk->https://youtu.be/6NqFduZUmHI
Text List Mention the values for multiple text fields.

Use the Arrow (->) separator for cloneable fields and Comma (,) separator for multiple values.

text1,text2->text3->text4,text5
Date picker Mention the date in this format(mm/dd/yyyy). 7/19/2022->9/12/2022->5/9/2022
Time Picker Mention the time in the following format (hh:mm:ss) 12:45:32->3:52:20->10:05:02

 

After creating the CSV file, Import the CSV file using WP Ultimate CSV importer.

In the mapping section, we have to check all the required fields that we created in the custom fields will be shown in Meta Box Group Field.

Meta Box Group Mapping

After import the CSV file, the result will display as,

Meta Box Group subfield after import

Meta Box Group subfield after import

Meta box Group subfield clone

 

Meta Box Group Clone

The clone field works as a repeater field. We can repeat an entire group field using this Cloneable option.

For this, we need to enable the ‘Cloneable’ checkbox while creating a group field.

Meta Box Group clone

 

The cloneable subfield values has multiple choices that are separated using Comma (,) separator

Cloneable subfields are separated by Arrow (->) separator and 

Group cloneable values are separator using pipeline (|) separator.

E.g.: Group field with repeater of group field 

Mobile Name (Text) – Samsung, iPhone, Moto 

OS (radio button – cloneable) – Android,ios. 

After adding your necessary post information, add values in your CSV,

  • OS – Android,ios|ios,ios
  • Mobile – Samsung->iphone|moto->Samsung

CSV value for Group clone,

Meta Box Group clone CSV

Meta box Group clone after import

Meta-Box-Group

 

 

Meta-Box-Group clone

When enabling this Cloneable option, we can also select the maximum no. of clones (Minimum Value – 2)

If we mention the value in this field, we can add the field till the specified no. of times by  an ‘add more’ button under the field.

 

Meta Box Relationships

We can create a relationship between Post, Custom Post, Pages and WooCommerce Products.

 For E.g. we create a relationship between two custom posts ‘Players’ and ‘Matches’.

If it is for custom posts we need to make sure that the Custom Posts are already created with data.

To create a Relationship in the Meta box,

Go to the Meta box plugin from the Dashboard, select Relationship.

Meta-Box-Relationship

Specify the Name for relationship field and also in Meta box Title.

Specify the post type in the From and To section under settings.

Meta-Box-Relationship-setting

After specified the necessary fields, click on the Publish button.

After creating the CSV file, import it using WP ultimate CSV importer.

In the mapping section, map the required fields and meta box relation fields.

Meta-Box-Relation-mappin

Then configure the option and continue to import.

Now, we can see the relationship option in custom post type.

Meta-Box-Relation-after-import

To create a CSV file with Meta Box relationship, add two field columns for relationship data with other data.

 

CSV value for Meta Box Relationship

WP Fields Description and CSV value Sample value in CSV file
mb_relation_to Specify the post type name.

Use comma (,) separator for multi values

Players,Events
mb_relation_from Specify the post type name.

Use comma (,) separator for multi values

Matches,Location

 

Meta Box Custom Table

 

We can create a Custom table to store the database. We are giving support to this function also.

To enable this option Go to Meta Box -à Custom Field à Settings

Here, we can see the option ‘save data in custom table’. Enable this by clicking on the checkbox.

 

Meta-Box-Custom-Table

Then specify the name for the custom table in the “Table Name’ field.

This feature stores the custom field data into a created Custom table rather than a WordPress default meta table.

We also have an option called ‘create table automatically’.

By enabling this option the plugin will create a table for our database automatically.

Meta-Box-Custom-Table

It helps to store the data in one place, so we can easily check and import/export it.

 

Export

You can export Meta Box field data along with Posts, Pages, or Custom Posts data export. 

To export,

  •         Move to the Export tab and select the post type which can be Posts, or Custom Posts.
  •         If you select Custom Posts, select one Custom Post name from beside the dropdown.
  •         Give a name for the file to export and select one file type.
  •         Configure advanced filter. To know more about this, refer to our export data with CSV Importer documentation.
  •         Click Export.
  •         After the file is ready to export. Click download to save the backup on your local desktop.