WordPress.org

Ready to get started?Download WordPress

Forums

Custom Page Template is ignored - default is being used instead (2 posts)

  1. Runtheball
    Member
    Posted 10 months ago #

    I've done this many times, always worked until today:
    I copied the page.php file and used it to create a products.php template file. I created the Products page, applied the template, but viewing the page it is identical to the home page. Even the navigation bar shows that I'm on the Home page, despite clicking on Products link.

    What would cause the products.php template to be ignored? (I placed it in the child theme directory).

    http://tuskercompany.com/staging/products/

  2. Runtheball
    Member
    Posted 10 months ago #

    Dug around some more and found other posts referencing the permalink settings. That made no sense at all - but I was groping for any possible solution so I tried it. It worked! I went to Settings->Reading, and changed Permalink Settings to 'Custom Structure', using the default
    /% postname %/ setting. Now I can see the content of my page and it uses my new custom page template.

    Oddly, though I selected 'Custom Structure', and hit Save Changes, the radio button reverts to Post Name each time I try to change it. I have no idea why.

    Hopefully this helps someone else.

Reply

You must log in to post.

About this Topic