Template Hierarchy
-
Does anyone know why the template hierarchy prioritises page-slug over page-id?
For example, I have more than one nested page with the slug “contact”. These pages by default will use the following hierarchy:
Template Hierarchy
page-contact.php
page-191.php
page.php
singular.php
index.phpWould it not make more sense to have the page-id as the highest priority template as ids are unique and slugs are often not?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Template Hierarchy’ is closed to new replies.