admin管理员组文章数量:1122846
For Avoid Duplication of Posts
Exclude the (Recent Newest Post) from their Category. But when a new post is published again in a similar or another category, the old post should be included again in their category and the new again excluded from their category.
Remember: Only New Recent Post Exclude not 1st Post via Offset=>1 etc. Maybe post_not_in => will work Please Help.
$args=array( 'cat' => 735, 'orderby'=> 'post_date', 'order' => 'DESC', 'post__not_in' => array($post->ID), 'posts_per_page'=> 1, 'offset' => 0, 'post_type' => 'post', 'post_status' => 'publish', 'caller_get_posts'=> 1 ); $the_query = new wp_query( $args );
本文标签:
版权声明:本文标题:categories - Exclude the Newest Recent Post from their Category After New post Publish old post should be in their category at H 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736296433a1929793.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论