I'm having a problem with the Page Templates not showing up in the Write > Page section. Like a nitwit, I posted my problem in a resolved topic. Refer to this post:
http://wordpress.org/support/topic/84519?replies=3
It has to do with my theme, I believe, but I'm not sure where to begin checking.
Any help would be appreciated!!
Thanks in advance!
MattGeri
Member
Posted 4 years ago #
Add:
<?php
/*
Template Name: Page name
*/
?>
Just had the same problem. Works a charm when you put that at the top of your template :)
It doesn't work IF you don't have at least 2 Page templates: the default page.php AND another one :)
earthtojens
Member
Posted 4 years ago #
I have the same problem with the K2 theme. K2 has a page-comments.php template that I want to use but I can't make the Page Template show up in the Write > Page section.
What does the default page need to be named? default.php, defaultpage.php or page.php?
CowboyFrank
Member
Posted 4 years ago #
I have the same problem as earthtojens... The Page Template option only displays "Default Template" in the dropdown, despite the fact that I have loaded 3 templates into the theme folder.
CowboyFrank
Member
Posted 4 years ago #
Looks like it's a browser issue - I was using Firefox on a Mac, and switching to Safari solved the problems.
gossip509
Member
Posted 4 years ago #
Here is how I solved my "Page Template Dropdown Not displaying on the right side" and "Archives not displaying"
1. Log out from WordPress admin
2. Open your archives.php page in a text editor. Add this code below on the top on the archives.php page (if it's not there). (Please back-up your archives.php file before editing it)
<?php
/*
Template Name: Archives
*/
?>
2. Login to wordpress admin, write a new page... then you should see the Page Template on the right side...[select Archives]
Good luck