STD in metabox RADIO

Support General STD in metabox RADIO

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1051
    catarinacarrarocatarinacarraro
    Participant

    Not working?

    #1076
    Tan NguyenTan Nguyen
    Participant

    Can you please send me your meta box code? So I can fix it for you.

    #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_' ),
    	),
    ),
    #1085
    Anh TranAnh Tran
    Keymaster

    Hi catarinacarraro,

    I've just tested with your code and I see the std value works, the radio with value "Em" is checked by default:

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘STD in metabox RADIO’ is closed to new replies.