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(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |