Date field doesn't display the value in admin
-
Hello
I’ve got 2 date fields, one is working perfectly but the other does not show the value in admin (the value is correctly saved in DB).
My code :
$evt_general = new_cmb2_box( array( 'id' => $prefix . 'general', 'title' => __( 'Général', 'cmb2' ), 'object_types' => array( 'evenement'), // Post type 'context' => 'normal', 'priority' => 'high', 'show_names' => true, // Show field names on the left 'cmb_styles' => true, // false to disable the CMB stylesheet ) ); $evt_general->add_field( array( 'name' => __( 'Date de début', 'cmb2' ), 'id' => $prefix . 'date_debut', 'type' => 'text_date', ) ); $evt_general->add_field( array( 'name' => __( 'Date de fin', 'cmb2' ), 'id' => $prefix . 'date_fin', 'type' => 'text_date', ) );
Any idea of what could be wrong ?
thanks
- The topic ‘Date field doesn't display the value in admin’ is closed to new replies.