Support » Themes and Templates » Custom Page Templates not showing up after upgrade to 2.9.2

  • Resolved librlart

    (@librlart)


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • MichaelH

    (@michaelh)

    Thread Starter librlart

    (@librlart)

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

    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 .

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Page Templates not showing up after upgrade to 2.9.2’ is closed to new replies.