Hi Tran
Thanks for reply. Here is my code
add_filter( ‘rwmb_meta_boxes’, ‘katalog_register_views’ );
/**
* Register meta boxes
*
* Remember to change “your_prefix” to actual prefix in your project
*
* @return void
*/
function katalog_register_views( $meta_boxes )
{
/**
* prefix of meta keys (optional)
* Use underscore (_) at the beginning to make keys hidden
* Alt.: You also can make prefix empty to disable it
*/
// Better has an underscore as last sign
$prefix = ‘katalog_’;
// 1st meta box
$meta_boxes[] = array(
// Meta box id, UNIQUE per meta box. Optional since 4.1.5
‘id’ => ‘katalog_views’,
// Meta box title – Will appear at the drag and drop handle bar. Required.
‘title’ => __( ‘Katalog Views’, ‘meta-box’ ),
// Post types, accept custom post types as well – DEFAULT is array(‘post’). Optional.
‘post_types’ => array( ‘katalog’,’katalog_mailorder’,’katalog_homegarden’ ),
// Where the meta box appear: normal (default), advanced, side. Optional.
‘context’ => ‘normal’,
// Order of meta box: high (default), low. Optional.
‘priority’ => ‘low’,
// Auto save: true, false (default). Optional.
‘autosave’ => true,
// List of meta fields
‘fields’ => array(
// Tab 1
array(
‘name’ => __( ‘Katalog View Description’, ‘meta-box’ ),
‘id’ => $prefix.’katalog_view_desc’,
‘desc’ => __( ”, ‘meta-box’ ),
‘type’ => ‘textarea’,
‘clone’ => false,
),
array(
‘name’ => __( ‘Views’, ‘meta-box’ ),
‘id’ => $prefix.’views’,
‘type’ => ‘image_advanced’,
‘max_file_uploads’ => 16,
),
),
);
return $meta_boxes;
}