Title: Populating select option type
Last modified: August 21, 2016

---

# Populating select option type

 *  [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/populating-select-option-type/)
 * Hi,
 * Great plugin.
 * I was wondering if there was a possible way to populate the contents of the select
   options with titles that are stored in an array. I’ve tried multiple variations
   and seem to be having issues
 * Some pointers would be very much appreciated. Would I be able to do something
   like this?
 *     ```
       'choices'     => array(
                 array(
                   'value'       => 'test',
                   'label'       => echo $sliders[0][name];,
                   'src'         => ''
                 ),
       ```
   
 * [https://wordpress.org/plugins/option-tree/](https://wordpress.org/plugins/option-tree/)

 The topic ‘Populating select option type’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/option-tree_363534.svg)
 * [OptionTree](https://wordpress.org/plugins/option-tree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/option-tree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/option-tree/)
 * [Active Topics](https://wordpress.org/support/plugin/option-tree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/option-tree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/option-tree/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/populating-select-option-type/)
 * Status: not resolved