Templates don't appear in the drop down list on the Page section

0

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

asked Aug 19 '10 at 6:20

dashaluna

54

edited Aug 19 '10 at 6:20

add comment
enter at least 15 characters

3 Answers

0

@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.

answered Aug 19 '10 at 9:22

dashaluna

54

add comment
enter at least 15 characters
1

Do you see the template listed in the normal WP Page editor? We're using the same function to get that list.

answered Aug 19 '10 at 6:26

sc0ttkclark

2936

Nope, I couldn't see the template selection list on ordinary WP pages... which made me research it more - I've added it as my answer to this topic. Thanks for help. – dashaluna Aug 19 '10 at 9:15
add comment
enter at least 15 characters
1

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.

answered Aug 19 '10 at 8:19

Fike

208

edited Aug 19 '10 at 8:24

Yes, that's the order I've been creating the .php files. I read this info too http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates – dashaluna Aug 19 '10 at 9:14
add comment
enter at least 15 characters