Title: User select field?
Last modified: August 22, 2016

---

# User select field?

 *  [lydia_b](https://wordpress.org/support/users/lydia_b/)
 * (@lydia_b)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/user-select-field/)
 * I love the toolset with types and Views, but I really need some way to associate
   wordpress users with my custom post types. Is there a user select meta field 
   that can be added to custom post types?
 * [https://wordpress.org/plugins/types/](https://wordpress.org/plugins/types/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * (@iworks)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/user-select-field/#post-5450815)
 * Dear Lydia
 * You must use `wpt_field_options` filter to add users.
 * See example for field with title “user id”:
 *     ```
       add_filter( 'wpt_field_options', 'add_some_options', 10, 3);
       function add_some_options( $options, $title, $type )
       {
           switch( $title )
           {
           case 'user id':
               $args = array(
                   'orderby' => 'display_name',
                   'fields' => array( 'ID', 'display_name')
               );
               foreach( get_users($args) as $user ) {
                   $options[] = array(
                       '#value' => $user->ID,
                       '#title' => $user->display_name,
                   );
               }
               break;
           }
           return $options;
       }
       ```
   
 * Cheers.
 * Marcin
 *  [Rams07](https://wordpress.org/support/users/rams07/)
 * (@rams07)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/user-select-field/#post-5451112)
 * Hi Team,
 * Great Plugin.
 * I am creating library management system in WP. I would like to add author names
   as comma separated values into select fields. I have created custom field group.
   but it is not saved properly when I add comma separated values into it. And also
   let me know how to show these values in frontend.
 * Thanks and Much appreciated for the plugin work.
 * Best regards,
    -Rams

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘User select field?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/types_ced1d3.svg)
 * [Toolset Types - Custom Post Types, Custom Fields and Taxonomies](https://wordpress.org/plugins/types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/types/)
 * [Active Topics](https://wordpress.org/support/plugin/types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/types/reviews/)

## Tags

 * [get_users](https://wordpress.org/support/topic-tag/get_users/)

 * 2 replies
 * 3 participants
 * Last reply from: [Rams07](https://wordpress.org/support/users/rams07/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/user-select-field/#post-5451112)
 * Status: not resolved