Skip Navigation

[Resolved] Custom post for multiple author

This support ticket is created 3 years, 5 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 3 voices.

Last updated by Luo Yang 3 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2175655

Dear Sir/Madam,

I have custom posts and custom roles, in general, custom posts can be edit/delete by my own author, if I want to allow custom posts to be edit/delete by a group of the specific author, how can I set the access right using the Access?

#2175881

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

You want all posts of some custom post type to be edited by a specific group of authors, yes?

The only way to create a "group" of authors is to make a custom role.

You can make a custom role which is a copy of the author role, but has some other name. You then assign this role to whichever authors should belong to the "group".

#2176045

Dear Nigel,

Thanks for your reply. as I will have many same custom posts like "class", a "class" will be managed by several tutors, if I have hundreds of classes, then may I have hundreds of group? This is not possible. Any other possible solution?

#2176951

Hello,

Toolset Access plugin can control the access to posts on post type level, that means you can setup a user role, for example "tutors", and enable privileges "Edit any" + "Delete any" to your custom post type "class" for user role "tutors", then all "tutors" users can edit/delete any "class" posts, see our document:
https://toolset.com/course-lesson/setting-access-control/

#2177253

Dear Luo Yang,

Yes, I know about Access but it doesn't what I want. For example, I have tutors A, B, C, D, and E and I have classes, C1, C2, C3, how can I only allow

A, B, D can edit C1 while A, B, D are co-teach the class C1
A, C, D, E can edit C2

Is it true only using View to limit the access rather than the update from the dashboard?

#2180751

There isn't such kind of built-in feature within Toolset plugins or WordPress core, one post can have only one author, you might consider these:
1) Create a custom post type "tutors", setup each tutors post's author as different WordPress users
2) Setup many-to-many relationship between "tutors" and "class"
3) In single "tutors" post, display a post view:
- Query "class" posts
- Filter by post type relationship between "tutors" and "class"
- In Views loop, display the editing post form link + delete post form link

More helps:
https://toolset.com/course-lesson/how-to-create-custom-searches-and-relationships-for-users/
https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred-delete-post
https://toolset.com/course-lesson/front-end-forms-for-editing-content/