Support

Account

Home Forums Backend Issues (wp-admin) ACF does not restore visibility to hidden metaboxrs when page template changes

Solved

ACF does not restore visibility to hidden metaboxrs when page template changes

  • I have 3 page templates, one contains ACF fields and I have selected to hide other items on the edit page such as Content Editor when the template with the ACF fields is chosen.

    If I change templates to one not containing ACF fields, the hidden metaboxes remain hidden. ACF does not restore visibility.

    I found the function get_style in /core/controllers/post.php which hides metaboxes but could not find any function that restores visibility.

  • I figured out a workaround:

    1. Created a field group with no fields.
    2. Set location rule for all page templates other than the one with ACF fields
    3. Set metaboxes to be visible

    Now it works as it should…

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

The topic ‘ACF does not restore visibility to hidden metaboxrs when page template changes’ is closed to new replies.