On this page
WP::query_posts()
Set up the Loop based on the query variables.
Source
File: wp-includes/class-wp.php. View all references
public function query_posts() {
global $wp_the_query;
$this->build_query_string();
$wp_the_query->query( $this->query_vars );
}
Related
Uses
| Uses | Description |
|---|---|
| WP::build_query_string() wp-includes/class-wp.php | Sets the query string property based off of the query variable property. |
Used By
| Used By | Description |
|---|---|
| WP::main() wp-includes/class-wp.php | Sets up all of the variables required by the WordPress environment. |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp/query_posts