have_posts

Advertisement

Summery Summery

Whether current WordPress query has results to loop over.

Syntax Syntax

have_posts()

Return Return

(bool)

Source Source

File: wp-includes/query.php

 */
function have_posts() {
	global $wp_query;
	return $wp_query->have_posts();

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply