When i try to clear out all values in a cloneable field and hit save, it always generated another 12 automatically. How can i prevent this?
Any idea what can be going wrong?
Im using Metabox 4.15.5.
This is the meta value data that gets stored each time in the database:
Hi this is still happening. Im a paying customer where is the support?
Sorry for not reply the topic. I don't know why I missed this. Can you please tell me what field type it is? And please post your code here so I can debug and fix it faster.
Thanks for understanding.
Thats ok, i got worried that support disappeared. Im using latest version of meta box. I have the following extensions as well, fully updated:
Code is below:
$meta_boxes = array( 'id' => 'restriction_targeting', 'title' => esc_html__( 'Targeting', 'your-prefix' ), 'post_types' => array( 'restrictions' ), // List of meta fields 'fields' => array( array( 'name' => esc_html__( 'Categories', 'your-prefix' ), 'id' => $prefix . 'categories', 'type' => 'taxonomy_advanced', 'taxonomy' => 'product_cat', 'clone' => true, 'field_type' => 'select_tree', 'query_args' => array(), ), ) );
Hi Thomas, I could replicate the bug. Looks like the clone doesn't work well with
select_tree. I'll check and fix it.
Ok thank you Anh Tran!
Sorry for the late reply. I've managed to get it to work now. Thank you!