WPDev.one
Core Function
View Source on Trac ↗

have_posts()

have_posts( )

Determines whether current WordPress query has posts to loop over.

Return Value

(bool)
True if posts are available, false if end of the loop.

Function Information

Since Version
1.5.0
Source File
wp-includes/query.php
Advertisement