Template Dropdown not showing up within Wordpress administrator page

后端 未结 22 922
清歌不尽
清歌不尽 2021-02-01 17:49

I am working on a Wordpress-based project, and I just added a new template to the installation by uploading a template file. I was creating a new page that will use my new templ

相关标签:
22条回答
  • 2021-02-01 18:48

    I have found a different solution for this. I reactivated my custom theme but then problem persisted.. then in the top most section of the code for the custom page template where it actually defines the name of the template like this:

    <?php
        /*
         Template Name: Front Page
        */
    ?>
    

    I did this:

    <?php
        /**
        * Template Name: Front Page
        */
    ?>  
    

    Then refreshed the admin panel and it appeared.Seems a bit weird but it worked for me. Feel happy to share this.

    0 讨论(0)
  • 2021-02-01 18:48

    I tried many of the suggested answers. None worked in my case.

    A possible reason for the Template Dropdown not showing is a missing index.php in your Theme folder.

    Just create an empty one, in case your hierarchy does not need one. But the existance of that file enables the option to choose the page template and suppresses an error message in the Choose-Theme page btw

    0 讨论(0)
  • 2021-02-01 18:53

    I had the exact same problem with WordPress 3.2.1. I added a new template and the menu disappeared from the page add/edit screen. The solution was to switch back to the default twentyeleven theme end then right back to my custom theme. The templates drop-down began appearing again.

    BTW, you said "revert to the default template, and back to my custom template" but I'm pretty sure you meant theme. I'm guessing where you saw this was here:

    http://wordpress.org/support/topic/template-file-drop-down-not-appearing

    Looks like this bug has existed for a couple of years at least. I filed a report: http://core.trac.wordpress.org/ticket/18324

    0 讨论(0)
  • 2021-02-01 18:54

    In addition to all of the above, make sure that you have 'page attributes' checked in the screen options panel in the top right, otherwise the page attributes section wont show regardless.

    0 讨论(0)
提交回复
热议问题