WP::query_posts
Set up the Loop based on the query variables.
Method of the class: WP{}
No Hooks.
Returns
null. Nothing (null).
Usage
global $wp; $wp->query_posts();
Notes
- Global. WP_Query.
$wp_the_queryWordPress Query object.
Changelog
| Since 2.0.0 | Introduced. |
WP::query_posts() WP::query posts code WP 7.0
public function query_posts() {
global $wp_the_query;
$this->build_query_string();
$wp_the_query->query( $this->query_vars );
}