Support » Fixing WordPress » Top-Level Pages ignoring page.php and using index.php

  • Resolved w1nk5

    (@w1nk5)


    I am working on a site on my local server. For some reason, all top level pages are ignoring the page.php template file and are using the index.php template file.

    For example, consider the following page structure:

    Support
    – Contact
    – FAQ
    – More Support

    The ‘Support’ page uses the index.php template file and it’s sub-pages (Contact, FAQ, etc.) are using the page.php template file.

    I have never seen this bug before.

    What the h*ll is going on?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • When you create top level pages what template are you using

    Thread Starter w1nk5

    (@w1nk5)

    All pages are set to use the default template. There actually aren’t any specialized page templates.

    Thread Starter w1nk5

    (@w1nk5)

    I had registered a taxonomy named ‘year’ for a custom post type I had set up. While this post type was set up it would make all top-level pages ignore the page.php template file and use the index.php after any thing was done in the admin (Save a Page, update a setting, etc.). I simply changed the id of the taxonomy from year to vehicle_year and this resolved the issue.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Top-Level Pages ignoring page.php and using index.php’ is closed to new replies.