Support

Account

Home Forums General Issues Moving old custom fields to ACF

Helping

Moving old custom fields to ACF

  • I have been relying heavily on WordPress Custom Fields on my website for years now, and every post has multiple custom fields. I have now installed ACF, and I’m confused.

    The thing is – since ACF by default disables the standard custom fields panel on posts, how is someone supposed to “migrate” all these old custom fields to ACF? And why does ACF even disable the default panel?

    Is there any documentation on how someone who has tons of custom fields already is supposed to migrate to ACF?

  • ACF removes it because it seriously impacts the performance of the editor.

    You can enable it by adding the following to functions.php

    
    add_filter('remove_wp_meta_box', '__return_false', 20);
    

    There is no tutorials or information regarding moving other types of custom fields to ACF. There have been plenty of discussions here in the past.

    Basically, if the custom field holds a single, simple text value then all you really need to do is create an ACF field with the same field name (meta_key). If the field can contain multiple values or is more complex than a simple text value then the fields need to be converted to what ACF needs. The details of every type of field are too complex to go into every possibility. It requires understanding how the existing field is stored in the DB and converting the value to what ACF needs stored in the DB for each type of field.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.