quick fix, wordpress | June 12th, 2013

The edit author attribute is not added by default in for custom post types. To add the author attribute the following code is required:

please add this code to function.php in theme folder.

function allowAuthorEditing()
{
  add_post_type_support( 'mytype', 'author' );
}

add_action('init','allowAuthorEditing');

There are no comments yet, add one below.

Leave a Comment


You must be logged in to post a comment.