Pages ignoring template files, always use index.php
-
Totally stumped by this one.
I’m developing a journal website via localhost with pages, posts and a few custom post types. I used twentysixteen as a blueprint and turned it into a custom theme. Posts are displaying correctly, but my pages ignore both pages.php and template-cat-landing.php in the usual template hierarchy and instead use index.php (and home.php until I renamed it homexxx.php). When I view a page after editing, I don’t see the_content() from that page, I see the_content() from all blog posts instead.
I’ve deactivated all plugins and stripped out almost everything from functions.php but nothing seems to work. The front page and blog page are assigned in Settings. I’ve searched the internet high and low but have not found anyone with a similar problem.
Has anyone ever encountered this?
My ugly options are 1) recreating the theme from scratch or 2) ??
Any feedback would be appreciated.
Michael
- The topic ‘Pages ignoring template files, always use index.php’ is closed to new replies.