have_posts


have_posts ( No parameters )

Returns:
  • (bool) True if posts are available, false if end of the loop.
Defined at:

Description

Determines whether current WordPress query has posts to loop over.

Related Functions

the_post, get_posts, have_comments, next_posts, get_post

Top Google Results

User discussions

wpseek mobile