I have added a sub group in metabox and I can't seem to see the field names in oxygen to add the data - can you help please - the code that metabox gave me for my setup is below. I can see the first group in the repeater but not the sub group
<?php
$groups = rwmb_meta( 'treatment_category' );
foreach ( $groups as $group ) {
// Field text_tu3ffbt7f:
echo $group[ 'text_tu3ffbt7f' ] ?? '';
// Field treatment_lede:
echo $group[ 'treatment_lede' ] ?? '';
// Field treatment-group:
$subgroups = $group[ 'treatment-group' ] ?? '';
foreach ( $subgroups as $subgroup ) {
// Field treatment-name:
echo $subgroup[ 'treatment-name' ] ?? '';
// Field treatment_price:
echo $subgroup[ 'treatment_price' ] ?? '';
// Field treatment-space:
$checkbox = $subgroup[ 'treatment-space' ] ?? 0;
if ( $checkbox ) {
echo 'Checked';
} else {
echo 'Unchecked';
}
}
}