I'm working on a site that allows multiple authors on posts by using an "additional authors" Posts to Posts connection type. Posts still have a standard author, but they can optionally have additional authors.
I'd like to modify the author archive query to include all posts by the author, including those where they are an "additional" author. This isn't as simple as just adding parameters to the main author query, so in
pre_get_posts I'm combining two queries by getting the matching post IDs from both, then running a
Thats works, but I can't figure out how to pass the results of that query to the author template. Changing the
author query var means that the site doesn't show the author archive template.
tl;dr - can you use
pre_get_posts to fully customize the author archive query, and include posts that are not actually authored by that user?