Forum Replies Created
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
catarinacarraro
ParticipantYou can build it so?
catarinacarraro
ParticipantYou're going to solve this?
catarinacarraro
ParticipantExample:
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; } );catarinacarraro
Participantarray( '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_' ), ), ),catarinacarraro
ParticipantBut this way, it writes 3 different id in the database.
example:
apple_products
android_products
windowsphone_productsthe apple products will record apple_products
the android products will record android_products
the windows phone products will record windowsphone_productsthey need to record the same id
catarinacarraro
ParticipantHi
Also need this feature, urgent!
th
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)