August 13, 2015

The WordPress Template Hierarchy

A visual and linked-up version of the template hierarchy. If you work on WordPress sites, it’s good to know how everything kinda waterfalls down towards the index.php file. That file is what will be be used to render any page, unless there is a more specific one present. It looks complicated, but it allows you get pretty specific with your templating without having to do much other than plop a file in.

The newest member is `singular.php`, coming in 4.3, which covers what `single.php` and `page.php` combined do now.

Direct Link to ArticlePermalink


The WordPress Template Hierarchy is a post from CSS-Tricks

Pallavi Gupta

Wordpress | BuddyPress | WooCommerce Developer : I have developed a wide range of websites using Wordpress, PHP, HTML, CSS, jQuery and MySQL.