pagename.php has never worked for me
-
I’m sure I’m doing something ridiculously obviously wrong, but I’ve never been able to get the uppermost level of the template hierarchy for pages to work. As I understand it, the hierarchy is:
pagename.php -> page.php -> index.php
So I would think that if I had a page named Articles and I put an articles.php file in the theme folder, it would use that as the template by default. But the only way it works for me is if I put that special Template comment at the top of the file, and then edit the page in the backend and select it as a template.
Anyone know what I’m doing wrong?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘pagename.php has never worked for me’ is closed to new replies.