Page Template drop down missing in WordPress 2.6
Aug 10, 2008 | Featured, Wordpress

I upgraded from 2.5.1 to 2.6 last month. It is a good version and better than previous one. They fixed the Custom field problem and I am happy.
I discovered some new bugs in this version. Where are page template drop down in WordPress 2.6? Ya, the page template section is missing. I couldn’t find it whenever i try to create new page with custom template. Weird @-@
So, i just play with the wp-admin dir and try search the problem. What make this thing happen?
I figured out the edit-page-form.php in 2.6 is not the same as the 2.5. They add some new function to it.
The new 2.6 :
2.5
*click for bigger image
<?php if ( 0 != count( get_page_templates() ) ) { ?>
If it not equal to zero(the number of page template in you theme dir), it will automatically appear. But the page template drop-down still not there . What i can see is they add function. It is totally different.
Solution :
I made some modification to edit-page-form.php by adding some value.
- Go to wp-admin dir. search for
edit-page-form.php - Open it with text editor.
- Go to line 265. replace 0 with greater value like 110.
- Save it.
Refresh post page. The Page Template drop down should automatically appear now.










August 10th, 2008
not having problem with it.. if the template file is available on theme directory n correctly specify it for custom template it will automatically appear.. if the file doesnt exist the menu will not be there..
August 23rd, 2008
It worked for me, thx.
August 26th, 2008
this kinda out of topic question,
what kind of software are u using to edit the php file?
August 26th, 2008
i use e-text editor
August 30th, 2008
Hi,
I found this and another weird solution about changing the theme, any of then worked for me.
I just changed wp-admin.css
I posted here:
http://ceslava.com/blog/solucin-al-bug-de-wp-26-para-las-plantillas-de-pginas/
The post in spanish but you just have to look for the last css code
September 16th, 2008
Thanks for that - got the menu on but the drop down didn’t contain any of the theme templates! Ahhhh!
September 18th, 2008
WP 6 it’s ok. Just you must add template (admin panel) when you add new file with template.
September 19th, 2008
Yahooooo
September 21st, 2008
The drop down appears but it is not possible to select a page template. Am I supposed to change this:
[code]
[/code]
in some way?
September 21st, 2008
This is hidden in my latest post:
/*
Template Name: Links
*/
September 21st, 2008
@joakim
better don’t. i suggest you to upgrade to the latest 2.6.2. I guest there is something wrong with the theme code that disable some wp-dashboard function. Some themes are fine. If the template already in the directory. The drop down menu will show. Else check your theme function.php
i hope my explaination will help you
October 1st, 2008
I am using wordpress MU and the admin main site has the page template, but the smaller sites ( mysite.com/othersite ) doesn’t have the template.
October 4th, 2008
i am not sure about wp MU. sorry
October 7th, 2008
Подскажите шооблончег под Wordpress 2.6.2, чтобы был похож на ваш frozr.com.
Заранее благодарю)
October 9th, 2008
Hi,
Thanks for this. I was wondering where this function has gone
October 29th, 2008
Thank you so much!! I installed word press with Fantastico and noticed that the templates were no longer there - since my site uses about ten templates I was in real trouble! Thanks again for the fix!!