Skip Navigation

[Resolved] Cannot change Custom Post Type Author

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 3 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#2066667

I have a members site where members create posts via a custom post type post form.
Members necessarily have limited capabilities, and no dashboard access. I do NOT want to grant author privileges to all members.
For the CPT I have "Show Author" checked.

If an Admin creates this custom post type for a member, they cannot change/assign the author of the post to a member.

The Author drop-down in the post and in the Quick Edit only display administrators to choose from.
What controls how this list is populated?
An Administrator should be able to assign any user/author to any post.
Instead of a drop-down this Author field should be a search to choose any member from a list of users.

hidden link

#2066873

Hello, WordPress defines the options available in the author selection fields in a way that Toolset does not manage directly. As you mentioned, the options are dictated by User role. There are a couple of custom code PHP snippets available that might be useful if you want to enable other User roles. One snippet applies to the author field in the legacy post editor and in the Quick Edit feature. The other snippet applies to the author field in the Block Editor for posts. Both snippets are necessary to manage the author options in all 3 locations. For the Legacy editor and Quick Edit:
https://toolset.com/forums/topic/cant-add-new-user-with-new-custom-role-as-author/

And for the Block editor:
https://www.davidmillington.net/2020/02/25/wordpress-authors-dropdown-custom-roles/

We've filed a feature request with the Access developers to integrate these fields with permissions set in Access Control for each post type, but that feature hasn't been added just yet. Until then, the custom code snippets are required.