Support

Account

Home Forums General Issues Label and Value in an array – help needed :( Reply To: Label and Value in an array – help needed :(

  • Hi John,

    Try this:

    
    $field = get_field_object('field_5039a99716d1d');
    
    if( $field ){
    	foreach( $field['choices'] as $k => $v ){
    		echo $k . ': ' .  $v;
    	}
    }
    

    If the field is indeed a multi select it should work.