Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Basic question, but I want to enable page templates. I have one theme which has page templates enabled. I switched to another but there is no option to change the template, even when creating a new page. How do I switch this option on? I've had a root around on the Codex and forum but can't find it.

share|improve this question

2 Answers 2

up vote 5 down vote accepted

Chances are that the theme you've switched to has no page templates defined - they exist on a per theme basis.

Here's the Codex reference: http://codex.wordpress.org/Pages#Page_Templates

share|improve this answer
    
Thanks. Looks like what I wanted to do is not possible. I have a widget that sits in the sidebar which searches a webservice. The results go into a custom template which as you say has to be built on a theme by theme basis. So it will never be a generic widget. –  JohnnyBizzle Mar 21 '11 at 16:11

Define your template name in the custom template file.

  <?php
/*
Template Name: demo
*/
?>

After this the select template option will be available on the edit screen. You can choose the desired name you want.

share|improve this answer
    
not true. something else must be done, since my templates dissapeared –  NickNo Aug 6 at 11:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.