The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Which Template Files Do Page Posts Uniquely Rely On? (2 posts)

  1. erikmarcus
    Posted 8 years ago #

    I just ported my site over to a new theme, and the front page and single blog post pages both look great.


    Unfortunately, I've got a train wreck when I open any Page post (as opposed to blog posts, which show up fine).


    I'm quite new to WordPress, but I'm guessing the above meltdown must be occurring because in customizing my theme, I must have unknowingly corrupted a template file that Page views rely on, but nothing else does. Can somebody tell me which Template files are unique to a Page view? I'd like to replace these Template files with my theme's original files.

  2. Justin Tadlock
    WordPress God
    Posted 8 years ago #

    Pages rely on the Page template -- page.php. If it doesn't exist, then it falls back on index.php.

    You can read more about the template hierarchy here:

Topic Closed

This topic has been closed to new replies.

About this Topic