WordPress 中排除置顶文章董德多2021年10月12日0 WordPress中排除置顶文章,在wordpress的查询中设置参数:post__not_in = get_option(sticky_posts)即可排除置顶文章,示例代码如下: ?php$recentPosts = new WP_Query(array(post__not_in = get_option(sticky_posts)));