Skip Navigation

[Resolved] If a post has 2 authors (guest author from Simple Author plugin), can both edit?

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have the option of adding multiple authors to the same post and I'd like to be able to allow the guest author to be able to edit the post as well?

Solution:

There isn't such kind of built-in feature within Toolset or WordPress.

In WordPress, one post can have only one post author.

There is a workaround, in your case, it needs to setup many-to-many relationship between posts and WP users, but Toolset relationships are based on post types.

So you can try to setup a intermediate post type "Members", use it to setup the many-to-many relationship between posts and "Members". For example:

https://toolset.com/forums/topic/if-a-post-has-2-authors-guest-author-from-simple-author-plugin-can-both-edit/#post-1639407

Relevant Documentation:

https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/

This support ticket is created 4 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)

Author
Posts
#1639337

Tell us what you are trying to do? I have a custom post and I have created a custom role for it and it's working fine with the role being able to edit.. I have the option of adding multiple authors to the same post and I'd like to be able to allow the guest author to be able to edit the post as well? But I am confused that just by adding the user as a guest author on a post, I don't think I change the user's role.. but am I creating an association of that post with the user? It doesn't seem to be working but I don't know if I am missing something or trying something that's not possible.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? hidden link

#1639407

Hello,

There isn't such kind of built-in feature within Toolset or WordPress.

In WordPress, one post can have only one post author.

There is a workaround, in your case, it needs to setup many-to-many relationship between posts and WP users, but Toolset relationships are based on post types.

So you can try to setup a intermediate post type "Members", use it to setup the many-to-many relationship between posts and "Members". For example, your custom post type is "my-cpt":

1) Create a post type "Members", each wordpress user can have only one "Members" post, "Members" post author is different users.
https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/
section "How do I prevent users from creating more than one Contractor post?"

2) Setup many-to-many relationship between "my-cpt" and "Members", connect "Members" post with other "my-cpt" posts
https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/

3) In a single "Members" post, display a post view:
- Query "my-cpt" posts
- Filter by relationship between "my-cpt" and "Members"
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items
- Display a Toolset edit form link for editing "my-cpt" post

More help:
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

#1639755

My issue is resolved now. Thank you!

Thanks for updating me about the fact that maybe it's not possible out of the box..:-).. the workaround seems alright but I'll try it at another time. For now I'll move to other tasks.

Thanks again Luo Yang..:-)..

Have a nice day..:-)..

Regards,
Alim