In addition to archive.php, single.php, and page.php, there are a number of other standard template files that WordPress looks for before using index.php for particular views. We're not going to create these files here, but you should feel free to experiment on your own WordPress installation. To learn about the complete file hierarchy for WordPress themes, feel free to visit https://www.codeinwp.com/blog/wordpress-theme-heirarchy/. There's a great graph there that presents the hierarchy visually. It's very easy to follow and does a much better job at explaining this than I would do here with word alone. In addition, when you browse the official code bundle for this chapter, you'll see that many additional files have been created and are actually available inside the bundle. We cover them here, however, as it would probably be too much information at this point.
You can also find a detailed flowchart of the template hierarchy at https://developer.wordpress.org/themes/basics/template-hierarchy/.
In this chapter, we've experimented with the uses of quite a number of WordPress template tags. In Chapter 13, Creating a Non-Blog Website Part Two – E-Commerce Websites and Custom Content Elements, I list more of the most useful template tags.
Next, we'll explore making custom templates for pages.