Used By
| Used By | Description |
|---|---|
| wp-includes/deprecated.php: start_wp() | Sets up the WordPress Loop. |
| wp-includes/class-wp-query.php: WP_Query::the_post() | Sets up the current post. |
Set up the next post and iterate current post index.
(WP_Post) Next post.
File: wp-includes/class-wp-query.php
public function next_post() {
$this->current_post++;
$this->post = $this->posts[ $this->current_post ];
return $this->post;
} | Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_query/next_post