W
W
WordPress The Right Way
Search…
W
W
WordPress The Right Way
English en-US
WordPress The Right Way
Getting Started
Debugging
Data
Core
Code Style Guide
I18n
JavaScript
Multisite
Queries
Routing
The Main Loop & Template Loading
What Are Query Variables and Where Do They Come From?
Clashes, Slugs, & Debugging
Rewrite Rules
Security
Servers And Deployment
Templates
Testing
Widgets
Community
Credits
Powered By
GitBook
The Main Loop & Template Loading
The main query is a
WP_Query
object
The main loop is using that main query
The main query is done before the template is even loaded
The template is loaded based on what the main query is
The main query is determined by parameters called query variables
Which template is loaded when is shown on the template hierarchy diagram
All templates are just custom ways of showing the main post loop
Previous
Routing
Next
What Are Query Variables and Where Do They Come From?
Last modified
2yr ago
Copy link