Title: [Plugin: Front-end Editor] Users in editable select dropdown
Last modified: August 20, 2016

---

# [Plugin: Front-end Editor] Users in editable select dropdown

 *  Resolved [tcfza](https://wordpress.org/support/users/tcfza/)
 * (@tcfza)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-users-in-editable-select-dropdown/)
 * Hi there
 * Great plugin!
 * Is there an easier way to do the below?
 * Any help would be greatly appreciated, thank you
 *     ```
       $userargs = array(
       					'exclude' => 1,
       				);
       				$fvusers = get_users($userargs);
   
           				foreach ($fvusers as $user) {
               				$myusriddd[] = $user->ID;
       					$myusrndd[] = $user->display_name;
           				}
   
         				editable_post_meta( $mycustid, 'assigned_rep_code', array(
       					'type' => 'select',
       					'values' => array(
       						$myusriddd[0] => $myusrndd[0],
       						$myusriddd[1] => $myusrndd[1],
       						$myusriddd[2] => $myusrndd[2],
       						$myusriddd[3] => $myusrndd[3],
       						$myusriddd[4] => $myusrndd[4],
       						$myusriddd[5] => $myusrndd[5],
       						$myusriddd[6] => $myusrndd[6],
       						$myusriddd[7] => $myusrndd[7],
       						$myusriddd[8] => $myusrndd[8],
       						$myusriddd[9] => $myusrndd[9],
       						$myusriddd[10] => $myusrndd[10],
       						$myusriddd[11] => $myusrndd[11],
       						$myusriddd[12] => $myusrndd[12],
       						$myusriddd[13] => $myusrndd[13],
       						$myusriddd[14] => $myusrndd[14],
       						$myusriddd[15] => $myusrndd[15],
       						$myusriddd[16] => $myusrndd[16],
       						$myusriddd[17] => $myusrndd[17],
       						$myusriddd[18] => $myusrndd[18],
       						$myusriddd[19] => $myusrndd[19],
       						$myusriddd[20] => $myusrndd[20],
       						$myusriddd[21] => $myusrndd[21],
       						$myusriddd[22] => $myusrndd[22],
       						$myusriddd[23] => $myusrndd[23],
       						$myusriddd[24] => $myusrndd[24],
       						$myusriddd[25] => $myusrndd[25],
       						$myusriddd[26] => $myusrndd[26],
       						$myusriddd[27] => $myusrndd[27],
       						$myusriddd[28] => $myusrndd[28],
       						$myusriddd[29] => $myusrndd[29],
       					)
       				) );
       ```
   
 * [http://wordpress.org/extend/plugins/front-end-editor/](http://wordpress.org/extend/plugins/front-end-editor/)

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

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-users-in-editable-select-dropdown/#post-3050233)
 * Yes:
 *     ```
       ...
   
       $user_choices = array();
   
       foreach ( $fvusers as $user ) {
         $user_choices[ $user->ID ] = $user->display_name;
       }
   
       editable_post_meta( $mycustid, 'assigned_rep_code', array(
         'type' => 'select',
         'values' => $user_choices
       ) );
       ```
   
 *  Thread Starter [tcfza](https://wordpress.org/support/users/tcfza/)
 * (@tcfza)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-users-in-editable-select-dropdown/#post-3050238)
 * Brilliant!
 * Thank you very much Scribu

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

The topic ‘[Plugin: Front-end Editor] Users in editable select dropdown’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/front-end-editor.svg)
 * [Front-end Editor](https://wordpress.org/plugins/front-end-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-editor/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [tcfza](https://wordpress.org/support/users/tcfza/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-users-in-editable-select-dropdown/#post-3050238)
 * Status: resolved