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:
1 2 3 4 5 6 | function allowAuthorEditing() { add_post_type_support( 'mytype', 'author' ); } add_action('init','allowAuthorEditing'); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.