1. 首页
  2. WordPress 函数手册

rewind_posts()

rewind_posts()

倒回环柱。
Rewind the loop posts.

目录锚点:#返回#源码#笔记


返回(Return)

无返回值


源码(Source)

/**
 * Rewind the loop posts.
 *
 * @since 1.5.0
 *
 * @global WP_Query $wp_query
 */
function rewind_posts() {
	global $wp_query;
	$wp_query->rewind_posts();
}
更新版本 源码位置 使用 被使用
1.5.0 wp-includes/query.php:956 0 1 function

笔记(Notes)

基本示例
从Codex迁移自定义查询的示例

rewind_posts() 为WP2原创文章,链接:https://www.wp2.cn/functions/rewind_posts/