A WordPress-centric search engine for devs and theme authors



have_posts ›

Since1.5.0
Deprecatedn/a
have_posts ( No parameters )
Returns:
  • (bool)
Defined at:
Codex:

Whether current WordPress query has results to loop over.



Source

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