Title: Feature Request &#8211; Array data for select and radios
Last modified: August 20, 2016

---

# Feature Request – Array data for select and radios

 *  [ederlima](https://wordpress.org/support/users/ederlima/)
 * (@ederlima)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/feature-request-array-data-for-select-and-radios/)
 * Hi!
 * Can you include an option to use an array as data source for select fields and
   other multiple choices?
 * Instead of type in the values for options, can you create a field where i type
   the name of a custom function that returns an array with data, and use the function
   as source for the field (select)?
 * e.g:
 *     ```
       //in functions.php
   
       function my_custom_data()
       {
       return array(
       array('label'=>'my_label_1', 'value', 'my_value_1' ),
       array('label'=>'my_label_2', 'value', 'my_value_2' ),
       );
       }
       ```
   
 * Type: Select
    Data: my_custom_data
 * thank you!
 * [http://wordpress.org/extend/plugins/advanced-custom-fields/](http://wordpress.org/extend/plugins/advanced-custom-fields/)

The topic ‘Feature Request – Array data for select and radios’ is closed to new 
replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ederlima](https://wordpress.org/support/users/ederlima/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/feature-request-array-data-for-select-and-radios/)
 * Status: not resolved