To make theming more logical and extensible for CMS users, the following changes should be made to the template hierarchy:
blog.phptemplate should be introduced as the default page template for the blog archive (whether on the front-page or on a dedicated page). After
blog.phpthe template hierarchy would proceed as expected to
- If a custom page template is selected by a user, it should override all other templates, including
home.php. As the hierarchy is currently, you cannot offer homepage page templates in a child theme, if the parent theme includes a
front-page.php. This removes choice from the user for no apparent reason.
- TENTATIVE: Custom Permalink routing and embedding non-wordpress PHP functionality could be vastly simplified by offering a new file header comment that defines templates that should run at specific custom paths.
A feature plugin implementing these changes currently exists at: https://gschoppe.com/wordpress/better-template-hierarchy/
Author: Greg Schoppe
Vote count: 21