Templates don't appear in the drop down list on the Page section
Hello everyone,
I'm adding the text /* Template Name: Template Name */ to templates in my theme folder, as explained in the Pods CMS docs http://podscms.org/codex/wp_templates However, the only thing that appears there is page.php as long as it's present in the theme folder.
I don't know what I'm doing wrong or whether it's broken. I would really appreciate any help with it!
I'm using WP 3.0.1 and podscms 1.9.1
Many thanks, Dasha
edited Aug 19 '10 at 6:20
3 Answers
@sc0ttkclark comment made me research the issue of named templates not showing on normal WP pages as described in here http://codex.wordpress.org/Pages#Page_Templates
So, apparently this kind of thing happens. You need to reactivate your current theme. Go to Appearance > Themes then activate a default theme (or any other), then activate your theme that you're working on. And by magic the list of named page templates appears both on WP Pages and on Pods CMS Page section.
Why this issue happens I don't know, but that fixes it.
Do you see the template listed in the normal WP Page editor? We're using the same function to get that list.
Hi.
Just to clarify:
Is your text (/* blahblah */) wrapped with php tags (< ?php ... ?>)?
You are creating new .php files, upload them to your theme folder and add "Template Name:" text to them (or in reverse order)? If you are trying to edit currently existing templates, you should know that some templates (404.php, index.php, search.php, etc etc) are reserved in wp for particular features and won't show in pod templates in any case; they also have reserved template names, so you can't assign new ones by adding "Template Name" code.
edited Aug 19 '10 at 8:24


