Cusom Fields not enabling (1 post)

  1. scottgray29
    Posted 4 years ago #


    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???


    // 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;

Topic Closed

This topic has been closed to new replies.

About this Topic