• Hello,

    I have tried everything but it seems that I cannot get the “Custom Fields” option to enable in the screen options section when I trying to make a new post. I have made sure it is checked before a refresh and nothing happens, it won’t enable!

    Then I tried inserting the following code earlier into (functions.php)from another post I read that was supposed to “change what’s hidden by default” and that didn’t work.

    Please Help???

    Thanks.

    // Change what’s hidden by default
    add_filter(‘default_hidden_meta_boxes’, ‘be_hidden_meta_boxes’, 10, 2);
    function be_hidden_meta_boxes($hidden, $screen) {
    if ( ‘post’ == $screen->base || ‘page’ == $screen->base )
    $hidden = array(‘slugdiv’, ‘trackbacksdiv’, ‘postexcerpt’, ‘commentstatusdiv’, ‘commentsdiv’, ‘authordiv’, ‘revisionsdiv’);
    // removed ‘postcustom’,
    return $hidden;
    }

  • The topic ‘Cusom Fields not enabling’ is closed to new replies.