How to Migrate Custom Fields Data from ACF to Meta Box Plugin
Tags: metabox, migrate, acf, customfields
Published: 2021-11-09 01:54:39

If you are willing to change from ACF to Meta Box, how can you move all the custom fields data? Not only you but many others care about this matter. Therefore, recently Meta Box has released a new free extension called <strong>MB ACF Migration</strong>. This extension helps users <strong>migrate custom fields data from ACF to Meta Box with ONLY ONE CLICK</strong>. In this post, I will show you how to do that at the drop of a hat.

<!--more-->

Well, if you are still confused about what ACF and Meta Box are different or which is better, you can read <a href="http://metabox.io/meta-box-vs-acf">this comparison</a> first.

<h2>Introduction of MB ACF Migration</h2>

MB ACF Migration is a free extension released by the Meta Box team. This plugin helps users easily <strong>migrate custom fields data from ACF to Meta Box</strong>. In the past, it took a lot of time to do it. But now, it's so much easier with <strong>ONLY ONE CLICK</strong> thanks to MB ACF Migration.

With MB ACF Migration, you can easily migrate these types of data from ACF to Meta Box:

<ul>

   <li>Field group's settings with location rules</li>

   <li>Data of most field types, including relationships, groups,</li>

   <li>repeaters, flexible contents</li>

   <li>Data of conditional logic</li>

   <li>Data of option pages</li>

   <li>Data of posts, terms, users</li>

</ul>

<h2>Preparation</h2>

<ul>

   <li><a href="https://wordpress.org/plugins/meta-box/">Meta Box core plugin</a>: the framework to deal with custom fields. You can download and install it from wordpress.org.</li>

   <li><a href="https://metabox.io/plugins/meta-box-builder/">Meta Box Builder</a>: A Meta Box premium extension that provides UI to create and manage custom fields on the backend.</li>

   <li><a href="https://metabox.io/plugins/mb-acf-migration/">MB ACF Migration</a>: This extension is also available in the WordPress repo. Besides, if you use Meta Box AIO or Meta Box Core (in the premium bundle), go to <strong>Meta Box</strong> &gt; <strong>Extension</strong> and you will see <strong>MB ACF Migration</strong> in the extension list. Just tick to enable it. You may need to update the latest version of Meta Box AIO to have this extension.</li>

</ul>

<img class="aligncenter" src="https://i.imgur.com/E58Bxgs.png" alt="Activate MB ACF Migration in Meta Box AIO." width="1200" height="549" />

Besides these above plugins, remember to install all the needed Meta Box extensions that are corresponding to the features being migrated. For example, if you have fields in a group created by ACF, you have to enable <a href="https://metabox.io/plugins/meta-box-group/">Meta Box Group</a> to migrate the group field data. Or in ACF, when you set a location to display a field group in taxonomy then you have to activate the <a href="https://metabox.io/plugins/mb-term-meta/">MB Term Meta</a> extension in Meta Box.

To know more about all the Meta Box extensions, please go to <a href="https://metabox.io/plugins/">this Meta Box extension page</a>.

Note that in the process of moving data, you have to enable all the plugins I mentioned above.

<h2>Move Data from ACF to Meta Box</h2>

I used ACF to create a group of fields as below. These fields are Text, Email, Gallery, and Repeater. In Repeater, there are sub-fields: Checkbox, Text, and Gallery.

<img src="https://i.imgur.com/AHnxr9W.png" alt="Custom Fields created with ACF" width="1200" height="494" /> Fields created with ACF[/caption]

<img src="https://i.imgur.com/OEJTRO1.png" alt="Sub-fields in a group field created with ACF" width="1200" height="579" /> Sub-fields in a group field in ACF[/caption]

Besides, I used conditional logic to display the Image field when users choose Project Type as Web Design. The field group that I created by ACF is displayed like this:

&nbsp;

<img class="aligncenter" src="https://i.imgur.com/5Wa0fr9.gif" alt="the field group created by ACF is displayed." />

Similar to all the above features in ACF, I will use these extensions of Meta Box:

<ul>

   <li><a href="https://metabox.io/plugins/meta-box-group/">Meta box Group</a>: to have Group field, corresponding to Group + Repeater in ACF</li>

   <li><a href="https://metabox.io/plugins/meta-box-conditional-logic/">MB Conditional Logic</a>: to have the conditional logic feature.</li>

</ul>

<img class="aligncenter" src="https://i.imgur.com/G8liOLu.png" alt="Use extensions of Meta Box: Meta Box Group &amp; MB Conditional Logic." width="1200" height="549" />

I'd like to remind you a bit that to migrate custom fields data from ACF to Meta Box, you have to activate all the necessary plugins, even ACF as well.

After installing and activating MB ACF Migration, a new <strong>ACF Migration</strong> menu appears in the Meta Box menu. Go there and click <strong>Migrate</strong>. Then, wait about 1 minute for a message that notices the moving process has been completed.

<img class="aligncenter" src="https://i.imgur.com/IBNKBdn.png" alt="Using MB ACF Migration to move custom fields data from ACF to Meta Box" width="1200" height="549" />

Next, deactivate ACF and go to a post. Then, you can see that the fields are displayed exactly the same as when you use ACF. All the features like group and conditional logic also work well.

<img class="aligncenter" src="https://i.imgur.com/seKiUlQ.gif" alt="Fields are displayed exactly the same as when you use ACF after using MB ACF Migration " width="1366" height="625" />

Here are the fields are shown in the field edit. All the information such as field group ID and ID of each field have remained:

<img class="aligncenter" src="https://i.imgur.com/CenXI0i.png" alt="Field group ID and ID of each field have remained after moving custom fields data from ACF to Meta box" width="1200" height="383" />

<h2>Last Words</h2>

Just with one click, you can migrate custom fields data from ACF to Meta Box in an easy and fast way. However, ACF doesn't have the feature to create custom post types and custom taxonomies so you need CPT UI plugin. Therefore, if you want to move data from CPT UI to Meta Box, you can do it the same way as I mentioned in the tutorial on <a href="https://metabox.io/move-custom-post-type-custom-field-data-from-pods-to-meta-box/">migrating custom fields data from Pods to Meta Box</a>. You just have to create custom post types and custom taxonomies by Meta Box with the same title and ID them as in CPT UI.

What do you think about this Meta Box feature? Let us know in the comment section!