[ad_1]
Hi, I am trying to modify a WordPress query to return posts where a given user is among the authors.
I would expect it to work with:
$args = array(
'author__in' => $authors,
);
That works fine for posts with only one author, but if multiple authors is assigned to a post, it only returns those where the author is mentioned first (in the list of multiple authors of the post).
Please advice how to modify the query to get all posts where a given author is assigned.
Thank you.
The page I need help with: [log in to see the link]
