I created a "co_writer" custom taxonomy with author names as terms. I only use this taxonomy to output their names as co-authors on multi-author posts. As such, posts in which an author's name appears as a co-author (the custom taxonomy term) don't get displayed on that author's actual archive page.
I want the author's page to display not only posts an author alone has written but also posts that bear their namesake "co_writer" custom taxonomy term.
This is the present code in author.php:
<?php
if (have_posts()) : ?>
<header class="header-title-wrapper">
xxx
<?php
/* Start the Loop */
while (have_posts()) : the_post();
get_template_part('template-parts/content', get_post_format());
endwhile; ?>
Thanks to anyone who may be able to help.
pre_get_posts
.