有没有人有如何获得没有评论,并有特定标签的帖子的想法?WordPress的:获得零评论和特定标签的职位?
我试图
$args = array(
'tag' => $tags,
'post__not_in' => array($page_id),
'showposts'=>5,
'ignore_sticky_posts'=>1,
'comment_count' => 0
);
$my_query = new WP_Query($args);
if($my_query->have_posts()) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
... the usual stuff here ...
endwhile;
}
,但是这给了我也是已经评论说,即使有一个“‘COMMENT_COUNT’=> 0”的说法的帖子!为什么?什么是正确的解决方案?
谢谢。
我以为是这样:)好吧,看来我不得不汗一点点。不过,非常感谢。 – MSX 2012-04-16 12:38:36