• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / wp-includes/query.php


Lines:

1 to 100 of 122
<?php

/**
 * WordPress Query API
 *
 * The query API attempts to get which part of WordPress the user is on. It
 * also provides functionality for getting URL query information.
 *
 * @link https://developer.wordpress.org/themes/basics/the-loop/ More information on The Loop.
 *
 * @package WordPress
 * @subpackage Query
 */

/* function get_query_var() – Retrieve variable in the WP_Query class. */

/* function get_queried_object() – Retrieve the currently-queried object. */

/* function get_queried_object_id() – Retrieve ID of the current queried object. */

/* function set_query_var() – Set query variable. */

/* function query_posts() – Sets up The Loop with query parameters. */

/* function wp_reset_query() – Destroys the previous query and sets up a new query. */

/* function wp_reset_postdata() – After looping through a separate query, this function restores
the $post global to the current post in the main query. */

/*
 * Query type checks.
 */

/* function is_archive() – Determines whether the query is for an existing archive page. */

/* function is_post_type_archive() – Determines whether the query is for an existing post type archive page. */

/* function is_attachment() – Determines whether the query is for an existing attachment page. */

/* function is_author() – Determines whether the query is for an existing author archive page. */

/* function is_category() – Determines whether the query is for an existing category archive page. */

/* function is_tag() – Determines whether the query is for an existing tag archive page. */

/* function is_tax() – Determines whether the query is for an existing custom taxonomy archive page. */

/* function is_date() – Determines whether the query is for an existing date archive. */

/* function is_day() – Determines whether the query is for an existing day archive. */

/* function is_feed() – Determines whether the query is for a feed. */

/* function is_comment_feed() – Is the query for a comments feed? */

/* function is_front_page() – Determines whether the query is for the front page of the site. */

/* function is_home() – Determines whether the query is for the blog homepage. */

/* function is_privacy_policy() – Determines whether the query is for the Privacy Policy page. */

/* function is_month() – Determines whether the query is for an existing month archive. */

/* function is_page() – Determines whether the query is for an existing single page. */

/* function is_paged() – Determines whether the query is for paged results and not for the first page. */

/* function is_preview() – Determines whether the query is for a post or page preview. */

/* function is_robots() – Is the query for the robots file? */

/* function is_favicon() – Is the query for the favicon.ico file? */

/* function is_search() – Determines whether the query is for a search. */

/* function is_single() – Determines whether the query is for an existing single post. */

/* function is_singular() – Determines whether the query is for an existing single post of any post type
(post, attachment, page, custom post types). */

/* function is_time() – Determines whether the query is for a specific time. */

/* function is_trackback() – Determines whether the query is for a trackback endpoint call. */

/* function is_year() – Determines whether the query is for an existing year archive. */

/* function is_404() – Determines whether the query has resulted in a 404 (returns no results). */

/* function is_embed() – Is the query for an embedded post? */

/* function is_main_query() – Determines whether the query is the main query. */

/*
 * The Loop. Post loop control.
 */

/* function have_posts() – Whether current WordPress query has results to loop over. */

/* function in_the_loop() – Determines whether the caller is in the Loop. */

/* function rewind_posts() – Rewind the loop posts. */
[1] [2] Next »

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: wp-includes/query.php
      Plugin ref: WordPress
      Version: 5.6
      Deprecated?: No
      API Letters: I,P,Q,W

      Published: 25th November 2019 | Last updated: 9th December 2020

      Primary Sidebar

      Information

      File name: wp-includes/query.php
      Plugin ref: WordPress
      Version: 5.6
      Deprecated?: No
      API Letters: I,P,Q,W

      wp-includes

      Footer

      WP-a2z
      WordPress core a2z
      WordPress core only
      WordPress 5.6
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  core.wp-a2z.org
      © Copyright WP-a2z 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites