Template files are very important files for WordPress themes. We have mentioned this previously, but let's repeat it again. In order to have a theme in WordPress, we need to have at least the following files:
style.css, we define the theme name, a description, and the core CSS for the theme. In the
index.php file, we display the list of our posts, pages, or any other objects that are listed in that index page. There can be a lot of index pages in our template.
Without further ado, in this chapter we will: