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
版权声明:本文标题:wp query - Include posts with a specific custom taxonomy term in author page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736670731a1946905.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论