Hi! I have a Group field (others_gr). There is a Select field (country_of_birth, single choice) inside this group.
I tried many ways and searched for replies on the forum and this one is the best I can do to get the Label of the item in the Select field.
$group = rwmb_meta( 'others_gr', ['storage_type' => 'custom_table', 'table' => 'mb_post_model'] );
$select = $group['country_of_birth'];
$group_settings = rwmb_get_field_settings( 'others_gr' );
foreach ( $group_settings['fields'] as $field_settings ) {
$options = $field_settings['options'];
echo $options[ $select ];
}
The result shows the Label correctly but it always in double, as VietnamVietnam, JapanJapan...
Could you please check the code above or if you have already a solution for this.
Thank you!