๐ฏ By the end of this lesson you canโฆ
- Describe the WordPress request lifecycle
- Explain the role of the theme vs plugins
- Set up a local WordPress site
A request, step by step
- 1Visitor opens /blog/hello-worldthe web server hands the request to WordPress (index.php)
- 2WordPress loadscore, then active plugins, then your themeโs functions.php
- 3It works out the question“a single post with the slug hello-world”
- 4It queries the databaseand gets the post
- 5It chooses a templatefollowing the template hierarchy (e.g. single.php)
- 6The template runsthe Loop prints the post inside your HTML
๐ก Concept check
Which should control the colours and layout of a site?
๐ Key takeaways
- Themes control how things look; plugins add what things do.
- WordPress runs: load core โ plugins โ themeโs functions.php โ query โ template.
- Use a local tool like LocalWP to experiment safely.
Finished reading & practising?
Saved in this browser. Create a free account to keep it forever.