Today i want to create a new page template for different display purpose, just create a new page template as following content

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

save it as “newtemplate.php” and uploaded to theme folder.

However when i want to create a new page and choose my newly created page template. I can not find any Page Template drop down in my WordPress 2.5, it will automatically display in WordPress version < 2.5 . What's wrong with version2.5? After try and error few time i find the following solution is work for me.

1) Design -> Theme Editor -> Page Template (page.php) (Default Page Template)

2)Append following code at top of the page.php (Template name can be anything)

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

3) Saved it.

4) Page template drop down is display in write page now.

I really do not know why this happened? Is this a bug in WordPress 2.5? No idea, however above solution is work for me. Hope Help.

Tags :
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider making a donation to the charity, thanks.

Related Posts

Popular Posts