Wordpress Template Hierarchy Tutorial
Think of template hierarchy as an order of importance.
Wordpress template hierarchy tutorial. This means that templates with certain filenames affect specific areas on your website. The good thing about wordpress template hierarchy is that it follows a strict naming convention. Wordpress needs to have a way to know how to interact with the theme. Front page is for your website s main page.
So if you want your homepage to look different you can customize this template. And 404 is for when wordpress can t find the page in question. Knowing what the wordpress template hierarchy is and how it works will enable you to customize your website s theme more fully. At its heart the template hierarchy is the choice structure wordpress uses to determine what file in the theme will be used to generate the full final html for a given page of your wordpress website.
Wordpress uses the query string to decide which template or set of templates should be used to display the page. Wordpress is programmed to interact with your theme files in presenting content to different sections in your site. What s more the platform adheres to a strict hierarchy that keeps things organized. It also tells you what template name to use for a specific item.
Wordpress template hierarchy determines which template file should be used to display a certain type of page content s. The template file hierarchy the template file hierarchy overview overview. An individual web page can suite to more than one templates. You will have an easy time finding the right template files to edit and customize.
The query string is information that is contained in the link to each part of your website. Link for the. The wordpress template hierarchy is organized into seven main categories. For example the category archive and author archive both show a number of posts generally as a list.
Index php is the primary template that wordpress uses and it is required in a parent theme. Wordpress has a standard template hierarchy.