Meta Box
Support Forum
Support › Meta Box Group › Insertion manually for group fields
Please how can saving group of fields into database using add_post_meta ?
The group's value is an array of sub-fields' values and is saved as a single entry in the database. You can use the following code:
$value = array( 'sub_field_value_1', 'sub_field_value_2', // ... ); update_post_meta( $post_id, 'group_id', $value );