New and updated in 1.5.0
-
methodWP_Query::have_posts()
Determines whether there are more posts available in the loop.
-
hookposts_join_paged
Filters the JOIN clause of the query.
-
methodWP_Query::get()
Retrieves the value of a query variable.
-
methodWP_Query::set()
Sets the value of a query variable.
-
methodWP_Query::get_posts()
Retrieves an array of posts based on query variables.
-
hookposts_where
Filters the WHERE clause of the query.
-
hookposts_join
Filters the JOIN clause of the query.
-
Filters the WHERE clause of the query.
-
classWP_Query
The WordPress Query class.
-
methodWP_Query::init()
Initiates object properties and sets default values.
-
Reparses the query vars.
-
methodWP_Query::parse_query()
Parses a query string and sets query type booleans.
-
hookparse_query
Fires after the main query vars have been parsed.
-
functionis_year()
Determines whether the query is for an existing year archive.
-
functionis_404()
Determines whether the query has resulted in a 404 (returns no results).
-
functionhave_posts()
Determines whether current WordPress query has posts to loop over.
-
functionrewind_posts()
Rewind the loop posts.
-
functionthe_post()
Iterate the post index in the loop.
-
functionsetup_postdata()
Set up global post data.
-
functionis_search()
Determines whether the query is for a search.
-
functionis_single()
Determines whether the query is for an existing single post.
-
functionis_singular()
Determines whether the query is for an existing single post of any post type (post, attachment, page, custom post types).
-
functionis_time()
Determines whether the query is for a specific time.
-
functionis_trackback()
Determines whether the query is for a trackback endpoint call.
-
functionis_feed()
Determines whether the query is for a feed.
-
functionis_home()
Determines whether the query is for the blog homepage.
-
functionis_month()
Determines whether the query is for an existing month archive.
-
functionis_page()
Determines whether the query is for an existing single page.
-
functionis_paged()
Determines whether the query is for a paged result and not for the first page.
-
functionis_author()
Determines whether the query is for an existing author archive page.