page.php not working for top-level pages
-
I am working with a theme I have made myself. The theme has one custom post type and two custom taxonomies.
The problem I have is that the page.php file is not being picked up for high-level pages. It works for child pages. But high-level pages are being displayed with index.php (I have no home.php page.)
The site is set up to display a static front page using front-page.php, which works correctly. Blog archive is supposed to display using index.php, which also works correctly.
But my 3 parent pages, which are linked in the “About Menu” in the footer of the page are all displaying incorrectly, using index.php instead of page.php. Child pages such as /about-mdd/interviews/ are displaying correctly using page.php.
Possibly related: any URL like martindenton.com/xyz also displays the index page rather than the 404.php page. Incorrect category urls work correctly showing 404.php.
Would appreciate any help, thanks!
The page I need help with: [log in to see the link]
- The topic ‘page.php not working for top-level pages’ is closed to new replies.