You need to set selected
argument for the wp_dropdown_users
function. Do it like this:
wp_dropdown_users( array(
// ...
'selected' => $user_id,
// ...
) );
Read documentation for wp_dropdown_users function
Related Posts:
- How to use wp_nav_menu to create a select menu dropdown?
- how to get value of wp_dropdown_categories
- Filter a second dropdown list when a value is chosen in the first one
- Improving the Thesis built-in dropdown menu via javascript
- Add submenu using the bootstrap wp_nav_menu
- Drop-down menu with wp_dropdown_pages
- How to number the options in a wp_dropdown_pages() select?
- Selected attribute of Drop down list
- Ultimate Member callback function issue
- Filter table with dropdown
- Get the selected option from drop down list
- pages meta box – get_categories dropdown
- Bootstrap drop down Navigation Menu in WordPress
- wp_dropdown_pages : choose post status to list in dropdown
- create drop down menu
- How to populate a dropdown menu with option selected?
- Link to subpages on the same page
- working with result of wp_dropdown_pages()
- Help with a get_categories () drop down menu – I want it to show in heirachial form
- Dropdown list control in a post
- wp_dropdown_users array for param selected
- top primary menu drop down categories not showing
- First ID won’t be excluded in wp_dropdown_pages with an $arg from tax_query
- Multiple Dropdown’s with Submit Button
- Create a drop down list within an active page not nav menu
- wp_dropdown_categories – remove
- PayPal button with drop down menu not working [closed]
- How to solve dropdown menu problem [closed]
- Dropdown Value from DB Entry
- Taxonomy dropdown metabox in the back-end
- Add a dropdown to theme customizer
- Dropdown with category selection
- How to store the value of a custom field dropdown select for post referencing?
- List custom post types in dropdown
- Dropdown: Display terms from B only if has relationship with a term A selected
- Saving two categories from two dropdowns in front end posting form
- How to add HTML5 ‘required’ attribute to wp_dropdown_categories() without JavaScripts?
- Replacing the NavWalker dropdown element
- Display custom taxonomy as dropdown list
- Filters post in admin with dropdown select, custom post type
- How to get a list of taxonomy terms which are being used only within certain post types?
- Archive dropdown styling not applied
- Getting the dropdown menu to redirect to different pages?
- Help with multiple dropdown tags search
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- How do I sort posts with multiple pages
- create drop down menu in theme customizer from custom db
- How to show cutom post labels in options?
- Filter dropdown in users.php “delete user” bulk edit screen
- WooCommerce Country Drop Down colours CSS [closed]
- How to convert custom post type based list to a dropdown list?
- Add clickable arrows to parent menu items with children elements e.g. with
- Where to start learning more about wordpress templates [closed]
- Add buttons to the new TinyMCE WP Editor. Javascript API
- Adding dropdown box to WordPress menu
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- Faceted search with WP-API data
- Create a Dropdown from Custom Post Type
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- How to use an array of categories as a dropdown?
- How to develop a menu like wwe.com?
- Dropdown menu not displaying WordPress
- Page Template Dropdown For Custom Post Types
- Replace the slug of parent pages with # [closed]
- wp_dropdown_categories – how to save in widget?
- WordPress Customizer: Dropdown with Category output
- Save the value of a wp_dropdown_pages
- Adding archive years to my menu
- Set Default Option Value as Blank for Meta Box
- Custom menu – different submenu for first menu item
- go to home page when i select default in select-box
- Drop down list with posts within the “add new” page
- dropdown menu, with walker
- How to edit a custom theme?
- Custom field with terms from another taxonomy programmatically
- How to hide “Change role to” dropdown on Users admin menu
- $wpdb not working wordpress plugin ajax call
- Load google font script based on optgroup label selected
- semantic ui dropdown for custom metabox
- Use output of wp_dropdown_categories($args)
- Multiple quantities with options
- How to hide/show meta box using jQuery,if click on Drop-Down Menu
- add image in dropdown select
- Custom dropdown search form that allows users to select option B based from Option 1
- show-hide based on select option jquery wordpress
- Get category fixed in dropdown browse categories
- No indication of menu
- Categories dropdown with all values selected using wp_dropdown_categories
- custom field meta-box with dropdown/autocomplete
- Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
- How to make a drop down menu with categories
- Calling Custom Taxonomy Dropdown in Form
- Custom fields: dropdown values depending on other custom field value
- Should I custom code drop down menus or use a wordpress plugin?
- Keeping my Sub Menu open when hovering on its list items
- Jquery dropdown menus working locally, but not in WordPress [duplicate]
- Contact form with dynamic dropdown and filter
- WordPress shortcode select option not working [closed]
- how to show selected options drop down menu values in attributes field in after saving post.php
- Menu items do not “open” when mouse hover over them?