Hello!
This is tricky. I have defined a select field as user meta. This is the array:
array(
'name' => esc_html__( 'Group Affiliation', 'colours-of-a-journey-plugin' ),
'id' => $prefix . 'structure_group_affiliation',
'type' => 'select',
'options' => array(
'sel' => esc_html__( 'Select', 'colours-of-a-journey-plugin' ),
'pi' => esc_html__( 'Public Institution', 'colours-of-a-journey-plugin' ),
'ngo' => esc_html__( 'NGO', 'colours-of-a-journey-plugin' ),
'sos' => esc_html__( 'Self-Organized Structure', 'colours-of-a-journey-plugin' ),
'oth' => esc_html__( 'Other', 'colours-of-a-journey-plugin' ),
),
),
When I get the value through
$user_structure_affiliation = get_user_meta( $curauth_id, 'colours_structure_group_affiliation', true );
it returns the "sel", "pi", "ngo" values and not the ones I need, eg. Public Institution. I also tried the rwmb_the_value function with no luck. Any ideas?
Thank you!