'standard', // Meta box title - Will appear at the drag and drop handle bar. Required. 'title' => __( 'Subtitle', 'rwmb' ), // Post types, accept custom post types as well - DEFAULT is array('post'). Optional. 'pages' => array( 'post' ), // Where the meta box appear: normal (default), advanced, side. Optional. 'context' => 'side', // Order of meta box: high (default), low. Optional. 'priority' => 'high', // Auto save: true, false (default). Optional. 'autosave' => true, // List of meta fields 'fields' => array( // RADIO BUTTONS array( 'name' => __( ' ', 'rwmb' ), 'id' => "{$prefix}sub", 'type' => 'text', 'desc' => __('Subtitle', 'rwmb' ), 'std' => '', ), ), ); // 1st meta box $meta_boxes[] = array( // Meta box id, UNIQUE per meta box. Optional since 4.1.5 'id' => 'standard', // Meta box title - Will appear at the drag and drop handle bar. Required. 'title' => __( 'Block Background color', 'rwmb' ), // Post types, accept custom post types as well - DEFAULT is array('post'). Optional. 'pages' => array( 'block' ), // Where the meta box appear: normal (default), advanced, side. Optional. 'context' => 'side', // Order of meta box: high (default), low. Optional. 'priority' => 'high', // Auto save: true, false (default). Optional. 'autosave' => true, // List of meta fields 'fields' => array( // RADIO BUTTONS array( 'name' => __( ' ', 'rwmb' ), 'id' => "{$prefix}block", 'type' => 'radio', 'desc' => __('You can change Theme colors in Appearance->Customize', 'rwmb' ), // Array of 'value' => 'Label' pairs for radio options. // Note: the 'value' is stored in meta field, not the 'Label' 'options' => array( 'dark' => __( 'Dark', 'rwmb' ), 'light' => __( 'Light', 'rwmb' ), ), 'std' => 'light', ), ), ); // 1st meta box $meta_boxes[] = array( // Meta box id, UNIQUE per meta box. Optional since 4.1.5 'id' => 'port', // Meta box title - Will appear at the drag and drop handle bar. Required. 'title' => __( 'Project Info', 'rwmb' ), // Post types, accept custom post types as well - DEFAULT is array('post'). Optional. 'pages' => array( 'portfolio' ), // Where the meta box appear: normal (default), advanced, side. Optional. 'context' => 'side', // Order of meta box: high (default), low. Optional. 'priority' => 'high', // Auto save: true, false (default). Optional. 'autosave' => true, // List of meta fields 'fields' => array( array( 'name' => __( ' ', 'rwmb' ), 'id' => "{$prefix}feat", 'type' => 'select', 'desc' => __('', 'rwmb' ), // Array of 'value' => 'Label' pairs for radio options. // Note: the 'value' is stored in meta field, not the 'Label' 'options' => array( '0' => __( 'Not Featured', 'rwmb' ), '1' => __( 'Featured', 'rwmb' ), ), 'std' => '0', ), array( 'name' => __( 'URL', 'rwmb' ), 'id' => "{$prefix}url", 'type' => 'text', 'desc' => __(' ', 'rwmb' ), 'std' => '', ), array( 'name' => __( 'Category', 'rwmb' ), 'id' => "{$prefix}cat", 'type' => 'text', 'desc' => __(' ', 'rwmb' ), 'std' => '', ), array( 'name' => __( 'Client', 'rwmb' ), 'id' => "{$prefix}cli", 'type' => 'text', 'desc' => __(' ', 'rwmb' ), 'std' => '', ), ), ); return $meta_boxes; } add_action('admin_head', 'wpse_50092_script_enqueuer'); function wpse_50092_script_enqueuer() { global $current_screen; echo << .rwmb-radio-wrapper .rwmb-input label {float: left; width: 100%; margin: 5px 0;} HTML; }