• To control page display, to my knowledge all you have to do is create a .php file “page-slug.php” and in the administration panel add a new page with the slug name, publish it, and it should show the “page-slug.php” setup when you click on that particular page link.

    Somehow on this template I’m modifying, all page links are making calls to “page.php” instead of their perspective “page-slug.php” file. I thought in the template hierarchy that WP looks for the -slug first then if it doesn’t find it, it defaults to the basic file (page.php, category.php..etc).

    Any thoughts on this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Page templates have never worked that way. Perhaps you’re thinking of category templates?

    Thread Starter i_banks

    (@i_banks)

    “Page templates have never worked that way.”

    Really? **confused**

    I just customized a theme for someone. Check out valeriealbarda.com.

    Of the links at the top, “books” is the only one with a “category-books.php” template page. The others are all pages. The “contact” link/page is governed by “page-contact.php”. Same thing with the “gallery” page (page-gallery.php).

    I need some help on this because this is a critical misunderstanding if I’m wrong. How do I give a page it’s on template design then? All page links can’t just link to “page.php”. That part doesn’t make sense.

    Thread Starter i_banks

    (@i_banks)

    I figured it out. There’s an option for pages called “templates” in the admin panel. This is what I use to give a custom page layout.

    I really haven’t worked with pages much. Categories yes. Anyhow, thanks for the input @ esmi.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Did "Page" Hierarchy Function Differently In Vers. 2.8.5 ?’ is closed to new replies.