wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



have_posts › WordPress Function

Da1.5.0
Deprecaton/a
have_posts ( Nessun parametro )
Ritorna:
  • (bool) True if posts are available, false if end of the loop.
Definito a:
Codex:

Determines whether current WordPress query has posts to loop over.



Sorgenti

function have_posts() {
	global $wp_query;

	if ( ! isset( $wp_query ) ) {
		return false;
	}

	return $wp_query->have_posts();
}