Posted: January 30, 2019 at 12:20 am
In WordPress Standard you can assign one author to a post/event which is then the owner of this post. When a user has the capability ee_read_private_events he then only sees his events where he is the author.
So far so good.
However, I need multiple authors for a post. So I added a plugin called Co-Authors Plus, which let’s you add multiple authors to a post (https://wordpress.org/plugins/co-authors-plus/).
The issue now is, that the capability does not let authors except the first one see its event.
I therefor assume that EE looks just takes THE first author of a post/event and checks it capabilities.
My question now: Is there a hook in order to change the functionality to able to use multiple authors.
This is incorrect.
That’s because, within the database, the author is still set as the first. The plugin you are using doesn’t update the author field on the post, for example, here’s an event I’ve set multiple authors on: https://monosnap.com/file/T8h6hfLygsDTonSd1gcCO9GW6MPVyY
Then in the database, just the one author: https://monosnap.com/file/2mfyzmIvTNNlZX3GZJPLjc25VtwBxW
I don’t know how that plugin is adding multiple authors, but it’s not using the post_author field to do it.
Again, that’s not
That’s correct, it does, but even if it didn’t the above plugin adds the authors in an different way, so pulling those authors would be unique to that pluign.
You’ll need to do that in multiple locations, for the event list its:
Which is a filter on the WHERE params for the query, but with the way the above plugin works I’m not sure how you would pull the additional authors in to be included in the query.
Thanks Tony. It looks like I might end up developing my own front end list for those users. I actually do not want to give them back-end access anyway just to view the registration list.
The support post ‘Multiple Authors for an Event Post’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.