Custom Fields
Re-Envisioned
Support Meta Box Group sub group gets only one value Reply To: sub group gets only one value

#8907

Anh Tran
Keymaster

Hi,

The files field is a sub-group of the press_group, so you should not get sub-group’s value directly with rwmb_meta. Instead, get the value from the parent group press_group, like this:

$group = rwmb_meta( 'press_group' );
$files = isset( $group['Press_Files_group'] ) ? $group['Press_Files_group'] : array();
print_r( $files );