Support Forum
Hello,
I need to find a way, how to show metaboxes only on taxonomy single term - taxonomy-{taxonomy}-{term}. Is there any solution? I use MB Term Meta. I try Show and Hide, Include Exclude extensions.
Test code:
add_filter( 'rwmb_meta_boxes', 'prefix_register_taxonomy_meta_boxes' );
function prefix_register_taxonomy_meta_boxes( $meta_boxes ){
$meta_boxes[] = array(
'title' => 'Standard Fields',
'taxonomies' => array('poschodia_retail'), // THIS: List of taxonomies. Array or string
'show' => array(
'poschodia_retail' => array( 22 ),
),
'exclude' => array(
'relation' => 'OR',
'ID' => array( 23 ),
),
'fields' => array(
array(
'name' => 'Featured?',
'id' => 'featured',
'type' => 'checkbox',
),
array(
'name' => 'Featured Content',
'id' => 'featured_content',
'type' => 'wysiwyg',
),
array(
'name' => 'Featured Image',
'id' => 'image_advanced',
'type' => 'image_advanced',
),
array(
'name' => 'Color',
'id' => 'color',
'type' => 'color',
),
),
);
return $meta_boxes;
}