Templates have disappeared from drop down lists

I think this happened when I upgraded to 3.4, or it might have happened more recently. The template drop down list is now missing most of my templates. Pages that were using the templates are still working but when I go to edit the page the drop down says ‘Default template’ and the template it is currently using is not shown in the drop down box.

does anyone have any ideas why they disappeared or what I can do to get them back?

Related posts

Leave a Reply

2 comments

  1. There was a WordPress 3.4.1 update released a little over a week ago. One of the bugfixes mentioned is “Fixes an issue where a theme’s page templates were sometimes not detected.” Have you tried doing that upgrade yet?

  2. Your template headers are possibly not formatted correctly. If I remember correctly, I saw something recently about the code used to read in page templates had changed and was more strict about proper header formatting. Make sure the name is on its own line there is space between name and comment asterisks:

    <?php
    /*
    Template Name: Snarfer
    */
    ?>
    

    or

    <?php
    /* Template Name: Snarfer */
    ?>