A WordPress-centric search engine for devs and theme authors



wp-includes/query.php ›

Functions44
WordPress Query API


Function Short description
get_queried_objectRetrieve the currently-queried object.
get_queried_object_idRetrieve ID of the current queried object.
get_query_varRetrieve variable in the WP_Query class.
have_commentsWhether there are comments to loop over.
have_postsWhether current WordPress query has results to loop over.
in_the_loopWhether the caller is in the Loop.
is_404Is the query a 404 (returns no results)?
is_archiveIs the query for an existing archive page?
is_attachmentIs the query for an existing attachment page?
is_authorIs the query for an existing author archive page?
is_categoryIs the query for an existing category archive page?
is_comment_feedIs the query for a comments feed?
is_dateIs the query for an existing date archive?
is_dayIs the query for an existing day archive?
is_embedIs the query for an embedded post?
is_feedIs the query for a feed?
is_front_pageIs the query for the front page of the site?
is_homeDetermines if the query is for the blog homepage.
is_main_queryIs the query the main query?
is_monthIs the query for an existing month archive?
is_pageIs the query for an existing single page?
is_pagedIs the query for paged result and not for the first page?
is_post_type_archiveIs the query for an existing post type archive page?
is_previewIs the query for a post or page preview?
is_robotsIs the query for the robots file?
is_searchIs the query for a search?
is_singleIs the query for an existing single post?
is_singularIs the query for an existing single post of any post type (post, attachment, page, custom post types)?
is_tagIs the query for an existing tag archive page?
is_taxIs the query for an existing custom taxonomy archive page?
is_timeIs the query for a specific time?
is_trackbackIs the query for a trackback endpoint call?
is_yearIs the query for an existing year archive?
query_postsSets up The Loop with query parameters.
rewind_postsRewind the loop posts.
setup_postdataSet up global post data.
set_query_varSet query variable.
the_commentIterate comment index in the comment loop.
the_postIterate the post index in the loop.
wp_old_slug_redirectRedirect old slugs to the correct permalink.
wp_reset_postdataAfter looping through a separate query, this function restores the $post global to the current post in the main query.
wp_reset_queryDestroys the previous query and sets up a new query.
_find_post_by_old_dateFind the post ID for redirecting an old date.
_find_post_by_old_slugFind the post ID for redirecting an old slug.