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?
why I don't see years in datapicker?
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?
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
It's definitely possible by using the save filters and bypassing CMB2's default save/fetch behavior
Does anyone know of an easy way to get the categories of images on a page that were uploaded there using a CMB2 file_list field?
@TheNewGuy16 could you clarify? I'm not sure I follow the question.
media doesn't have categories by default, unless you've added it somehow
file_list value is an array where the keys are the attachment's ID, and the value is the attachment's url, so you can always use the attachment ID to get data about it.
hey sorry i didnt mention that i added it using a plugin so that it would show up in the pop up modal. SO a wser admin goes to a page which is a main portfolio. Then they upload images to that portfolio and can can check categories right there in the upload modal. Now i need to get the cat_name of each image uploaded some might have tow or three cat_names. So you are saying i can somehow use the attachment IDs to get these cat_names?
Interesting. I don't have the answer for you as it's still not clear to me how the bits are tied together