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 make a donation to these charities.
My website mkyong.com is hosted by Liquid Web, I really like their fast and helpful support, it saved me a lot of time. Furthermore, their servers are extremely reliable, fast and stable, I don't remember when was the last time we had server downtime. Btw, they're offering $100 Coupon now, if you are sourcing for great hosting provider, go grab it.

Related Posts

Popular Posts