Forums

[resolved] Custom Page Templates not showing up after upgrade to 2.9.2 (4 posts)

  1. librlart
    Member
    Posted 2 years ago #

    Prior to 2.9.2, when you went into a single page edit, you could select a custom template from the drop-down menu in the attributes sidebar at the right. This doesn't seem to be present anymore. The only place I can find this option is under a page's "quick edit" and the custom page templates I created for some of the pages are no longer listed. Their code has not changed, and when I use 2.9.1 they show up as options.

    Have anything changed in 2.9.2 about how they have to be specified or included?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

  3. librlart
    Member
    Posted 2 years ago #

    Thanks! Switching to the default theme and back again seemed to work.

  4. espressoguy
    Member
    Posted 2 years ago #

    Yes, actually MichaelH's recommendation is very helpful for this issue. I found that it was not due to 2.9.2 at all. The problem was that my theme's "page.php" needed to have this tag at the top of the file:
    <?php
    /*
    Template Name: DefaultTemplate
    */
    ?>

    ...where DefaultTemplate is an arbitrary user-defined name. This is what appears in the drop-down box. Any file in the same folder bearing this "Template Name:" tag at the top, followed by the arbitrary user-defined name will be picked-up as an optional template file and the name will appear in the drop-down box.

    So it was really a bug in the Theme I was using ("Arthemia") not in Wp 2.9.2 .

Topic Closed

This topic has been closed to new replies.

About this Topic