- This topic has 2 replies, 2 voices, and was last updated 2 weeks, 2 days ago by .
-
Topic
-
Hi,
I have a sub group field in which I have a select field. How can I get label from the select field? I have a value, but i need a label.I found this code, but I need it in the sub group version.
$parts_name = rwmb_meta( 'group' ); $group_settings = rwmb_get_field_settings( 'group' ); $select_settings = $group_settings['fields']['select_field_id']; foreach ( $parts_name as $part_name ) { $value = $part_name['item']; $label = $select_settings['options'][$value]; echo $label; }
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.