UsefulLinks
Computer Science
Web Development
Content Management Systems
WordPress Theme Development
1. Introduction to WordPress Theme Development
2. Setting Up the Development Environment
3. Anatomy of a WordPress Theme
4. The Template Hierarchy
5. Building Core Template Files
6. The Loop and Content Display
7. Theme Functionality with functions.php
8. Advanced Template Files
9. Navigation and Menus
10. Widgets and Sidebars
11. The Customizer API
12. Block Editor Integration
13. Extending Theme Capabilities
14. Performance Optimization
15. Responsive Design and Mobile Optimization
16. Accessibility in Theme Development
17. Security Best Practices
18. Internationalization and Localization
19. WordPress Coding Standards
20. Child Themes
21. Debugging and Troubleshooting
22. Theme Distribution and Maintenance
4.
The Template Hierarchy
4.1.
Understanding How WordPress Selects Template Files
4.1.1.
Request Types and Template Selection
4.1.2.
The Hierarchy Decision Tree
4.1.3.
Visualizing the Template Hierarchy
4.1.4.
Template Loading Order
4.2.
Key Hierarchy Levels
4.2.1.
Site Front Page
4.2.1.1.
front-page.php
4.2.1.2.
home.php
4.2.1.3.
Static Page vs Blog Posts Page
4.2.2.
Single Content
4.2.2.1.
single.php
4.2.2.2.
single-{post-type}.php
4.2.2.3.
single-{post-type}-{slug}.php
4.2.3.
Pages
4.2.3.1.
page.php
4.2.3.2.
page-{slug}.php
4.2.3.3.
page-{id}.php
4.2.3.4.
page-{template}.php
4.2.4.
Archives
4.2.4.1.
archive.php
4.2.4.2.
archive-{post-type}.php
4.2.4.3.
category.php
4.2.4.4.
category-{slug}.php
4.2.4.5.
tag.php
4.2.4.6.
tag-{slug}.php
4.2.4.7.
author.php
4.2.4.8.
author-{nicename}.php
4.2.4.9.
date.php
4.2.5.
Search Results
4.2.5.1.
search.php
4.2.6.
404 Not Found
4.2.6.1.
404.php
4.2.7.
Attachments
4.2.7.1.
attachment.php
4.2.7.2.
{mimetype}.php
4.2.8.
The index.php Fallback
4.3.
Overriding and Customizing Templates
4.3.1.
Template Specificity Rules
4.3.2.
Creating Custom Templates
Previous
3. Anatomy of a WordPress Theme
Go to top
Next
5. Building Core Template Files