have_posts
have_posts ( No parameters )
Returns:- (bool) True if posts are available, false if end of the loop.
Defined at: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Determines whether current WordPress query has posts to loop over.