Box suddenly not appearing, but appears in Screen Options

Support MB Builder Box suddenly not appearing, but appears in Screen Options

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41173
    Shalom PenningtonShalom Pennington
    Participant

    Have a meta box that is suddenly missing from the page. The values for it appear in the default WP "Custom Fields" area, but the Meta Box version is missing. It box title appears and is checked in the "Screen Options" tab at the top of the page.

    This meta box is defined via PHP and connected to custom post type:

    <?php
    add_filter( 'rwmb_meta_boxes', 'jsc_site_details' );
    
    function jsc_site_details( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'      => __( 'Site Details', 'jsc' ),
            'id'         => 'site-details',
            'post_types' => ['jsc_site'],
            'fields'     => [
                [
                    'name'              => __( 'Site Status', 'jsc' ),
                    'id'                => $prefix . 'site_status',
                    'type'              => 'select',
                    'label_description' => __( '', 'jsc' ),
                    'options'           => [
                        'active'   => __( 'Active', 'jsc' ),
                        'disabled' => __( 'Disabled', 'jsc' ),
                        'archived' => __( 'Archived', 'jsc' ),
                    ],
                    'std'               => 'active',
                ],
            ],
        ];
    
        return $meta_boxes;
    }

    I found that if I change the site id to anything else, it appears:

    Doesn't appear
    'id' => 'site-details',

    Does appear
    'id' => 'site-details-test',

    Any suggestions as to what is keeping that box from appearing?

    #41184
    PeterPeter
    Moderator

    Hello,

    Please check if there is a block of code that makes the meta box hidden or the feature MB Conditional Logic.

    You can try to deactivate all plugins except for Meta Box, Meta Box extensions, switch to another theme and remove all other meta boxes then check this issue again.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.