WP_Query::next_post() public WP 1.5.0
Set up the next post and iterate current post index.
{} Это метод класса: WP_Query{}
Хуков нет.
Возвращает
WP_Post. Next post.
Использование
global $wp_query; $wp_query->next_post();
Список изменений
С версии 1.5.0 | Введена. |
Код WP_Query::next_post() WP Query::next post WP 5.6.2
public function next_post() {
$this->current_post++;
$this->post = $this->posts[ $this->current_post ];
return $this->post;
}