lundi 9 novembre 2015

Wordpress - Is it possible to add multiple text fields in one row with CMB2?

Using CMB2 we are able to create metaboxes for various post types. Right now, by default, every added custom field will be separated with new row.

For a better usability I would need to add some text fields next to each other, like on the image bellow: enter image description here

Is that even possible with CMB2?

Code Im using right now is:

   $cmb->add_field( array(
        'name'    => 'Test Text Medium',
        'desc'    => 'Street',
        'default' => '',
        'id'      => 'street',
        'type'    => 'text_medium',
    ) );



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire