About a year ago I remember seeing a plugin or some code which allowed you to add an author dropdown menu to the post “publishing” metabox instead of it being on its own.
I can’t seem to find this code anymore and was wondering if anyone knows how to easily do this?
In an ideal situation I would like to essentially add an additional row under the “Visibility:” row within the Publish metabox stating “Author:” along with the current authors name and an edit link after the name. Upon clicking on the edit link a drop down would show up with the same information as is available in author metabox.
In any case, I would greatly appreciate to know how this can be done.
I somewhat suck with admin stuff so test this carefully. I had some issues with users not coming up in dropdown, but it fails with default meta box as well – probably because of my messed up test stack.
I know it’s an old question, but an updated answer seems still relevant to give.
The original answer might have been the best option at the time but it misses checking if the post type supports changing author and fitting in the meta box style.
Main PHP
Helper PHP
PHTML
JavaScript
CSS
p.s. If you encounter errors it could be because the original version I use is made in SCSS, TypeScript and PHP 7.2. And uses a custom template engine.
or use the plugin Adminimize for customize this via options