Set up the next post and iterate current post index.

Return Return

(WP_Post) Next post.

Top ↑

Source Source

File: wp-includes/class-wp-query.php

	public function next_post() {


		/** @var WP_Post */
		$this->post = $this->posts[ $this->current_post ];
		return $this->post;

Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.