I have made a custom post type and need to be able to create posts and assign them to authors. It is easy to do this with posts as you can go to the bulk edit screen and immediately change the author. However, when I try to do this with my custom post type the author box is not there. How do I add the functionality to change the author of my custom post type?
EDIT: I found a solution, see answer below.
in Custom Post Type register arguments array use this
This will activate author box on the edit screen. After registering author to cpt you need to activate author from edit screen option ( top of the edit screen where you can enable/disable all metabox ) to display authorbox on the edit screen.
I found out that the edit author attribute is not added by default in for custom post types. To add the author attribute the following code is required:
Go to Screen Options in the top right corner and check the box that says Author. It will then display the Author meta box. This is possibly the worst user experience in WordPress. It confuses so many people.