functions.php file treated as page template file
|Reported by:||chodorowicz||Owned by:|
|Component:||General||Keywords:||has-patch commit 3.2-early|
When the string Template Name: is put into functions.php, this file is treated by WP as page template file. This situation is very unique, but still I believe that WP shouldn't even try to treat functions.php as page template file.
- place // Template Name:whatever in functions.php. The new template shows up in the select box for page template in page edit screen.
accompanying discussion http://wordpress.stackexchange.com/questions/10537/get-name-of-the-current-template-file/10543
Change History (4)
- Keywords has-patch commit 3.2-early added
- Milestone changed from Awaiting Review to Future Release