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?