Reviewing wp_dropdown_users()
there is apparently a 'selected'
parameter. So in theory, you could probably pass the posted value in here.
// set to the posted value, but you might be able to do this differently, depending on how you are storing the data
$selected = isset($_POST['author']) ? $_POST['author'] : false;
$args = array( 'name' => 'author',
'selected' => $selected );
wp_dropdown_user( $args );
Related Posts:
- Multiple radio button groups in one form
- Get checkbox value in jQuery
- How to read if a checkbox is checked in PHP?
- Function not defined javascript
- How to submit a form with JavaScript by clicking a link?
- Multiple Forms or Multiple Submits in a Page?
- “AutoComplete=Off” not working on Google Chrome Browser
- How to get rid of blue outer border when clicking on a form input field?
- Square brackets in CSS
- Input Type URL – Says “Please enter a URL” if HTTP is not included
- Form inside a table
- Redirecting to a page after submitting form in HTML
- Style reply form different than comment form
- How to trigger $_GET request within admin plugin page?
- Hook into and send mail using WP Mail SMTP type plugin from HTML static front page?
- How to add a button that enables the user to insert a link in a textarea located in the front-end?
- How to insert HTML/JavaScript form into WordPress page? [closed]
- File Uploader – Upload without adding to Media Library
- Programming WordPress to send a custom-built form to specified email address
- a generated wordpress page from a form that is inputted by user [closed]
- General Term for this form Field
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- How to hide the form after successful php execution
- Blog titles from WP blog on plain html site?
- Ajax fail and get 504 error
- Frontent user submit and view content [closed]
- Showing special sigh (?) in blank space after compress html code
- How to remove ?wp-mce from page source?
- Take input from form and pass it to function using a wp-plugin
- Checkbox conflict in my custom plugin admin page
- Why Won’t My Inputs in a form with a Get method work together?
- html generated by theme exist but doesnt appear in browser
- Anchor removed from DIV after Quick Edit is used
- Input data from email form not going to JSON file
- How to get the value of input hidden html from text editor to custom page template?
- Add Attribute to p Tag of Post Content
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- custom html in page change in browser
- A form that can save/edit after first input
- Add Adsense to a website but the server responds with error 510 [closed]
- Custom posts with certain html [closed]
- How do I make a child theme I made POST through a 3rd party plugin?
- WP Plugins – Use includes to display page content
- WordPress putting “rn” in every line break?
- Login to wordpress by clicking a link and specifying usernaname and password in url
- How to fetch form data and show it to my page?
- Plugin to create forms using HTML [closed]
- How can I remove line breaks from manually formatted HTML?
- plugin shortcode output
- Submit custom form from post content and execute in plugin
- How to allow user to select User ID in Formidable Pro form? [closed]
- Char limit on custom blog-post form? [closed]
- Can’t save any WordPress post with the html tag in it
- Attribute Quote Style in WordPress HTML
- Insert HTML Page in WordPress Page
- How to include this jQuery File in wordpress?
- Most valid way for the URL html structure
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- What doctype is considered best practice to use for WordPress?
- inside in editor
- Is there a way to embed a Google Docs form in a page without using plugins?
- Detailed form plugin, with ability to export to excel etc. OR edit PDF live? [closed]
- easy steps to make front end form without plugin
- Anchor tag in the entry-utility section ( the Posted in…part) appears from nowhere?
- Form that generates an ID for the customer
- Search WordPress using static html page
- How to Loop Through all Posts and Count Attachments using Get Media Attachments
- How do I add GoogleAnalytics header snippet in WordPress?
- Inline style HTML attribute is being stripped from all elements of a post
- Submit Form data to another page via Ajax (WordPress Way)
- Unfamiliar HTML Properties in Avada and Divi Themes [closed]
- Using custom HTML tags to WordPress [closed]
- Editing a text file from plugin menu
- How to execute html code inside php?
- Allow HTML in Settings API input field
- Remove tags from wordpress head
- Strange iframes added in wordpress 4.1 localhost
- Create custom markup to use in posts?
- How can I exclude a dynamic URL to show a popup created using ‘WordPress Popup’ plugin
- render html no formatting
- Ajax Plugin Not Echoing Response
- Plugin that will output submitted form data for user? [closed]
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- HTML tables in content areas
- how to insert a HTML form into a javascript popup?
- Why does hitting enter in Visual Editor add instead of ?
- How to allow YouTube object embed in WordPress 3+?
- stripping default wordpress code out of a page
- How do I add the same contact form to multiple wordpress sites and capture the response in one place or database?
- Button in SideBarOther widget not showing up on all pages
- Adding Plugin Assets to Header
- Images under 1MB are not being compressed
- Any idea how to get something like this to work? [closed]
- Widget Text Needs to be White [closed]
- WordPress Plugin Insert Html Code with Shortcode
- Why can’t I edit HTML in WordPress even with the administrator role?
- “uagb/section and uagb/columns block”
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Echoing a variable comes out with lots of white space
- Adding HTML to posts with certain tags?