archive.php in WordPress Themes
List posts by category, tag, date, or CPT archives with archive.php.
List posts by category, tag, date, or CPT archives with archive.php.
Customize search results layout and empty-state messaging.
Understand the difference between the site front page and the blog posts index.
Create header.php with doctype, wp_head, site branding, and primary navigation.
Close the document in footer.php and call wp_footer for scripts.
Learn how WordPress chooses which template file to load for each request.
Split shared chrome into header and footer templates for every page.
Organize templates, template parts, assets, and includes for maintainable themes.