admin管理员组

文章数量:1125748

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.

本文标签: wp queryInclude posts with a specific custom taxonomy term in author page