Support Forum » User Profile

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Metabox hidden using the same id #1386
    catarinacarrarocatarinacarraro
    Participant

    You can build it so?

    in reply to: Metabox hidden using the same id #1170
    catarinacarrarocatarinacarraro
    Participant

    You're going to solve this?

    in reply to: Metabox hidden using the same id #1080
    catarinacarrarocatarinacarraro
    Participant

    Example:

    will write to the database a unique name, Indepedent which to choose: cel_product

    add_filter( 'rwmb_meta_boxes', function( $meta_boxes )
    {
    	$meta_boxes[] = array(
    		'id' 			=> 'brand_product',
    		'title' 		=> 'Brands and Products',
    		'post_types' 	=> array( 'post', 'page' ),
    		'context'		=> 'normal',
    		'priority'		=> 'high',
    		'fields' => array(
    			array(
    				'id'	=> 'fone_id',
    				'name'	=> 'Brand',
    				'desc'	=> 'Pick Your Favourite Brand',
    				'type'	=> 'select',
    				'options' => array(
    					'apple' 		=> 'Apple',
    					'android' 		=> 'Android',
    					'windowsphone' 	=> 'WindowsPhone'
    				)
    			),
    			array(
    				'id' 	=> 'cel_product',
    				'name'	=> 'Select your apple product?',
    				'type'	=> 'checkbox_list',
    				'options' => array('iPhone', 'iPad', 'iPod'),
    				'visible' => array( 'fone_id', '=', 'apple' )
    			),
    			array(
    				'id' 	=> 'cel_product',
    				'name'	=> 'Select your android product?',
    				'type'	=> 'checkbox_list',
    				'options' => array('Galaxy', 'ZenPhone', 'Tablet'),
    				'visible' => array( 'fone_id', '=', 'android' )
    			),
    			array(
    				'id' 	=> 'cel_product',
    				'name'	=> 'Select your apple product?',
    				'type'	=> 'checkbox_list',
    				'options' => array( 'Nokia', 'Galaxy' ),
    				'visible' => array( 'fone_id', '=', 'windowsphone' )
    			)
    		)
    	);
    	return $meta_boxes;
    } );
    in reply to: STD in metabox RADIO #1079
    catarinacarrarocatarinacarraro
    Participant
    array(
    'name'    => __( 'Mais Destinos EM ou NO ?', '_cmb_' ),
    'id'      => "{$prefix}mais_destinos_em_no",
    'type'    => 'radio',
    'std' => 'em',
    // Array of 'value' => 'Label' pairs for radio options.
    // Note: the 'value' is stored in meta field, not the 'Label'
    'options' => array(
    	'em' => __( 'Em', '_cmb_' ),
    	'no' => __( 'No', '_cmb_' ),
    	'na' => __( 'Na', '_cmb_' ),
    	'da' => __( 'Da', '_cmb_' ),
    	'de' => __( 'De', '_cmb_' ),
    	),
    ),
    in reply to: Metabox hidden using the same id #1078
    catarinacarrarocatarinacarraro
    Participant

    But this way, it writes 3 different id in the database.

    example:
    apple_products
    android_products
    windowsphone_products

    the apple products will record apple_products
    the android products will record android_products
    the windows phone products will record windowsphone_products

    they need to record the same id

    in reply to: Fix for cloning WYSIWYG groups? #1050
    catarinacarrarocatarinacarraro
    Participant

    Hi

    Also need this feature, urgent!

    th

Viewing 6 posts - 1 through 6 (of 6 total)