admin管理员组文章数量:1296314
<?php
while ( have_posts() ) : the_post();
$get_series_id = get_post_meta( get_the_ID(), 'series_seri', true );
if (in_array($get_series_id, $do_not_duplicate)) {
continue; // We've already seen this post ID, so skip the rest of the loop
}
$do_not_duplicate[] = $get_series_id;
?>
<?php the_title(); ?>
<?php endwhile; wp_reset_postdata(); ?>
how to make duplicate post not counted ? i wanna show 20 post, but in frontpage only showing 5 post because duplicate post also counted,
本文标签: loopPrevent Duplicate Post Counted by Query
版权声明:本文标题:loop - Prevent Duplicate Post Counted by Query 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741633579a2389507.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论