rewind_posts() WordPress Function

The rewind_posts() function is used to reset the post data after a custom query. This function is useful for resetting the global $post variable after a custom query.

rewind_posts() #

Rewind the loop posts.


Source

File: wp-includes/query.php

function rewind_posts() {
	global $wp_query;
	$wp_query->rewind_posts();
}


Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.