I created a Wordpress theme that uses several custom page templates. According to the documentation http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates I did this simply by setting a comment at the top of my template files:
And it worked fine as long as I remember (this is not the first time I use custom page templates). Today we upgraded to Wodrpress 3.4, and suddenly the option to select a custom template disappeared from the administrator (this was in the drop-down list in the "Page Attributes" field on the right). However, if you use “Quick Edit” in the page list, the “Template” drop-down list is still displayed, but you can only select “Default template” - none of the custom templates I have configured.
According to this blog post: http://nacin.com/2012/03/29/page-templates-in-subdirectories-new-in-wordpress-3-4/ WP 3.4 added support for custom page templates inside a subdirectory, but it is unclear if this directory should be called anything special or if you still need a "template name" at the top of the files. I tried to create a "page" directory and first put an empty .php file in it, but did nothing. Then I tried to place one of my custom page templates (complete with "Template Name"), but that didn't help either.
It is worth noting that pages that have already been assigned to use a custom page template still display with this template, even if “Default Template” is specified in Quick Edit and there are no other templates in the drop-down list.
There is almost nothing to find on interwebs, but I hope one of you finds out what is happening.
source share