Support

Account

Home Forums Backend Issues (wp-admin) Some Custom Fields 'Hide on screen' setting is hiding Content Editor

Helping

Some Custom Fields 'Hide on screen' setting is hiding Content Editor

  • And this is for ALL pages and posts, creating new or editing…

    We imported pages, posts, and uploaded ACF Pro to a new site (from the client’s old site), noticed the Content (Visual/Text) Editor is hidden (div id postdivrich set to display:none) apparently due to one of the ACF groups having the ‘Custom Fields’ checkbox checked in the ‘Hide on screen’ section… due to possibly faulty PHP code in the plugin:

    if( in_array('the_content',$field_group['hide_on_screen']) ) {
        $e .= '#postdivrich {display: none;} ';
    }

    Echoing out $field_group shows `[hide_on_screen] => Array
    (
    [0] => the_content
    [1] => custom_fields
    )`

    The code indicates it’s not checking which checkbox is being checked, only if ANY are checked, apparently on ANY ACF group attached to a page or post… the ‘Content Editor’ box is unchecked.

    Can someone clarify this? The problem is not happening on the old site, and I’m not seeing why it is on the new site.

  • I discovered someone had checked Content Editor on one of the fields and set to apply to all pages and posts without realizing it, and disabling it fixed the problem.

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

You must be logged in to reply to this topic.