WP_Query::next_post()
Set up the next post and iterate current post index.
Description Description
Return Return
(WP_Post) Next post.
Source Source
File: wp-includes/class-wp-query.php
public function next_post() {
$this->current_post++;
$this->post = $this->posts[ $this->current_post ];
return $this->post;
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |