This is the root of the loop. It handles all the intricacies of a Wordpress request.
It is an instance of WP_Query class. The global variable is initiated in [wordpress root folder]/wp-includes/functions.php. Wordpress has provided wrapper functions to use wp_query and its operations. Read more about them at Conditional Tags and Query Posts.
Back to full list of global variables.
Technorati tags: wp_query


February 25th, 2006 at 7:59 am
[...] $wp_query [...]
April 17th, 2006 at 5:36 pm
[...] Now, more customization for RSS feeds in Wordpress! Wordpress executes the Wordpress Loop and the associated queries for producing the feeds. This implies that rules that apply for creating index, archive, searchor custom queries can be used for creating the feeds. It is kind of single-source publishing, same queries to be used for same content, irrespective of whether it displayed on the web or syndicated via the feed. [...]
May 3rd, 2006 at 4:36 pm
[...] This global variable stores the requested page number of a multipage post that has to be shown. It is set in the function setup_postdata($post) defined in [wordpress root folder]/wp-includes/functions.php. The variable page in the Wordpress request (query string) is used to set this global variable. The multipage content of the post is stored in the global variable pages. [...]
July 8th, 2006 at 10:25 pm
[...] m is a Wordpress query string variable which can be used to request posts posted at a certain time. It is parsed in the method get_posts() of wp_query. [...]
July 11th, 2006 at 1:48 pm
[...] posts_per_page is set in the method get_posts of WP_Query. [...]
September 7th, 2006 at 12:36 am
[...] m is a Wordpress query string variable which can be used to request posts posted at a certain time. It is parsed in the method get_posts() of wp_query. [...]
October 23rd, 2007 at 9:41 pm
[...] more customization for RSS feeds in Wordpress! Wordpress executes the Wordpress Loop and the associated queries for producing the feeds. This implies that rules that apply for creating [...]