使用以下参数的目的
caller_get_posts
使用以下参数的目的
caller_get_posts
如果caller_ get_ posts
设置为true(或1),则将首先排除返回粘性帖子。
这是一种转变的方式sticky posts
在查询中禁用。
注意事项:
caller_get_posts
自版本3.1以来已弃用!
使用ignore_sticky_posts
相反
嗨,我目前正在为我的博客构建一个主题。下面的代码指向最新的帖子(特色帖子)。因为这将有一个不同的风格比所有其他职位。然而我想过滤掉帖子格式:链接使用我在循环中定义的WP查询,因为它给我带来了更多的灵活性。我该怎么做呢? <?php $featured = new WP_Query(); $featured->query(\'showposts=1\'); ?> <?php while ($featured->have_post