要排除作者,请在用户id前面添加减号。因此,在您的情况下,它可能如下所示:
$args=array(
\'author\' => \'-2, -3, -4\', //excludes users with id 2, 3 and 4.
\'post_type\' => \'post\',
\'post_status\' => \'publish\',
\'posts_per_page\' => 1,
\'ignore_sticky_posts\'=> 1,
);
阅读更多信息
the codex