wordpress WP_Query函数 ignore_sticky_posts忽略置顶文章
在首页某个区块显示置顶文章,通过WP_Query,一直没有达到想要的效果,刚开始以为posts_per_page失效! $where = array('posts_per_page' =>3,'post__in' => get_option( 'sticky_posts' )); $the_query = new WP_Query($where); 无论如何设置,都会显示全部的置顶文章。 修改query_posts查询,还是一样的问题,无法达到预期想要的显示文章篇数。 修改显示文章的方式:showposts,但这个好像已经被新版的wordpress弃用了,依然无法达到预期的效果。 通过










