Time picker problem
-
This plugin seems awesome in many ways! ??
But I find it quite difficult to navigate the documentation. Some things are impossible to find any information on.For example, the time picker field can only be used in intervals of 5 minutes, and despite spending a few hours trying to find out how to change it, I still haven’t got a clue.
I’ve made a custom post type to document theatrical performance pieces, and need to have a field where the time length of each performance piece is entered.
Some pieces are only 3 minutes, but when trying to enter “3” it is immediately changed to Zero. Entering “5” (or 10, 15, 20, 25…) is possible, but entering the wrong time lengths sort of defeats the whole thing.This is what I’m trying to use:
′
$cmb_time->add_field( array(
‘name’ => esc_html__( ‘Minutes’, ‘ticketbox’ ),
‘desc’ => esc_html__( ‘Length in minutes’, ‘ticketbox’ ),
‘id’ => $prefix . ‘minutes’,
‘type’ => ‘text_time’,
‘time_format’ => ‘i’, // Set to minutes format
) );
′Is there a better way to solve it?
- The topic ‘Time picker problem’ is closed to new replies.