Rewinds the posts and resets post index.
Source
public function rewind_posts() {
$this->current_post = -1;
if ( $this->post_count > 0 ) {
$this->post = $this->posts[0];
}
}
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |
CARVIEW |
Rewinds the posts and resets post index.
public function rewind_posts() {
$this->current_post = -1;
if ( $this->post_count > 0 ) {
$this->post = $this->posts[0];
}
}
Used by | Description |
---|---|
WP_Query::have_posts()wp-includes/class-wp-query.php | Determines whether there are more posts available in the loop. |
rewind_posts()wp-includes/query.php | Rewind the loop posts. |
Version | Description |
---|---|
1.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.