[resolved] Top-Level Pages ignoring page.php and using index.php (4 posts)

  1. w1nk5
    Posted 4 years ago #

    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:

    - 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?


  2. govpatel
    Posted 4 years ago #

    When you create top level pages what template are you using

  3. w1nk5
    Posted 4 years ago #

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

  4. w1nk5
    Posted 4 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.