-
Notifications
You must be signed in to change notification settings - Fork 209
Description
I'm seeing some unexpected behavior when I try to use some standard WP_Query parameters with Co-Authors Plus.
For a normal WP_Query with one id specified in the "author" parameter, I see that Co-Authors inserts some additional SQL to query the custom author taxonomy (to make sure that posts are found even if the author is a co-author and not the main author on the post).
However, when I use the "author" parameter with a comma separated list of ids or the "author__in" parameter with an array of ids (as specified here: https://developer.wordpress.org/reference/classes/wp_query/#author-parameters) the query is not updated with a reference to the custom authors taxonomy.
This means that if I am trying to query for posts that have any of multiple authors, only posts that have the main author of the post as the author are returned (not any posts where that author is a coauthor).
I can write my own code to accomplish this if necessary, but it seems like something it would be useful to have in the plugin itself. I tried searching the repository, but didn't find a similar issue. Are there any plans in the works to add this? Or am I missing some setting somewhere to accomplish this?