Custom Metaboxes and Fields (CMB) will create metaboxes and forms with custom fields that will blow your mind. This is version 2.0 and has been completely rewritten.
I use a date field like that: '$basic_box->add_field( array( 'name' => 'תאריך לידה', 'id' => $prefix . 'birthday', 'type' => 'text_date', 'date_format' => 'd/m/Y', ) );' And it doesn't save dates that have a day parameter greater then 12. am i doing something wrong?
Sergey Mochalov
@proweb
why I don't see years in datapicker?
Ian Beck
@onecrayon
Anyone know if it's possible to use CMB2 to store repeating values as multiple assignments to the same key instead of an array assigned to a single instance of the key?
Ian Beck
@onecrayon
I found an undocumented 'multiple' argument for fields that looks like it does what I want, but it's mutually exclusive with the 'repeatable' argument
Justin Sternberg
@jtsternberg
It's definitely possible by using the save filters and bypassing CMB2's default save/fetch behavior