WordPress Template Hierarchy Explained
This post clears things up and explains how WordPress decides which file to load for a page, both in classic and block themes. I’ll show where the templates go, what WordPress looks for first, and how it moves down the list when files are missing. If you’re building or editing a theme, this is what you need to know first.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed