WP_Query (Custom Query)

WP_Query adds two important functionalities within WordPress –

  • You can use WP_Query to detect the type of request that WordPress is currently handling.
  • You can use the various functions offered by WP_Query to perform common tasks inside loops.

For more information, you can have a look at the below resources –

Andrew Nacin: WP_Query / WordPress In-depth from WordPress.tv | (CC BY-SA 4.0)