Support › MB Settings Page › Group value from Settings pageResolved
I am trying to get the value of a group having the ID of branding from a settings page.
The following is not generating any output. Any idea?
$group_value = rwmb_meta( 'branding', ['object_type' => 'setting'], 'my_options' );
print_r( $group_value );
Thank you for getting in touch.
Did you miss the prefix settings_ of the field ID? Just like
rwmb_meta( 'settings_branding', ['object_type' => 'setting'], 'my_options' )
If it still does not work, please share the code that creates the field, I will help you to check it.
Yes. As usual, I forgot about the prefix.
All good now.
Wrote about this at https://wpdevdesign.com/getting-url-of-a-groups-image-field-from-settings-page-in-meta-box/.