Hello
Yes its so simple when they are all in one id but, i am looping a lot of foreach for RWMB_Core::get_meta_boxes();
to get both values and keys in the frontend to make it easy to print fields.
Now i am also started to use same foreach to build a submission form and its working without any problem. However i have different issue hope you can guide me.
I have a multiple checkbox field and the values of checkboxes are 1,2,3,4,5,6,7,8,9,10
the meta_key is shown in fields are like this
<input value="1" type="checkbox" size="30" class="rwmb-checkbox_list " name="estate_purpose[]">
However when i am inserting post i couldnot find a way to insert estate_purpose[] values.
Here are some tries:
[estate_purpose] => Array
(
[0] => 9, //(id)
[1] => 10, //(id)
)
[estate_purpose] => Array
(
[9] //(id) => 1,
[10]//(id) => 1,
)
[estate_purpose] => Array
(
[9] //(id) => on,
[10]//(id) => on,
)
none of them worked. How can i insert multiple checkbox fields into the post? I mean how the array must be built?
Thanks.