WordPress Custom Fields Missing When ACF is Active

When the plugin ACF or ACF Pro 5.6.0 is active the native WordPress Custom Fields on post, pages or CPTs is not visible and gone missing. If you disable the ACF plugin the custom fields are visible again.

acf-wordpress-missing-custom-fields

The functionality to hide the WordPress custom fields was introduced in ACF version 5.5.13 but then made default in 5.6.0, it was made default to speed up the page speed  load of the admin edit page/post screen.

To reverse this behaviour you can add in your functions.php

 add_filter('acf/settings/remove_wp_meta_box', '__return_false');

Now the custom fields will be visible again.

6 comments

  • Deepak Rawat

    That was a life saver piece of code, wow !

  • Thanks so much – it was a problem for me, as I was manually copying and pasting all my product data from the WP fields to ACF, and needed to see them both in the editing screen!
    Saved me some headaches.

  • Thank you, I needed this just last week on a site where I had used the *Custom Code* plugin (to embed ISSUU embed code into a BB page where the Firewall was blocking unfiltered HTML on the front end.
    Adding this to the site, and to my Gists. Thanks (again!)

  • Patrick Fortino

    Thanks!. I had the same problem with custom fields from another plugin. Couldn’t figure out why I couldn’t see them if ACF was active.

Leave your comment