WordPress 4.3 Changes in Template Hierarchy

In WordPress  4.3 there is a new template file added in theme template hierarchy called singular.php . This will allow theme authors to use a common template for any singular post type.

It follows the rules of is_singular() and comes after single-{post-type}.php, single-post.php, single.php, andpage.php.

Template hierarchy for singular post types
Template hierarchy for singular post types

To learn more about WordPress theme template heirarchy : https://developer.wordpress.org/themes/basics/template-hierarchy/

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s