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.

I did this before in wordpress 3.4 but that code seems not working. I add this code inside wp-content/themes/ folder and I add new page from backend and try to select that. But it is not showing up, it's because new version..or am I doing it wrong?

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

<?php get_header(); ?>
Here's my cover page!
<?php get_footer(); ?>
share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Hm, first of all your page template has to be inside your current theme folder: /wp-content/themes/current-theme/ or in a similar folder. Check the Codex (Page Templates #File Folders) to make sure your template is in the right folder.

While looking at the Codex also check the Selecting a Page Template section above if you did everything the right way. Your page templates are only visible for pages, so you'll not find them in the post section or somewhere else.

share|improve this answer
    
thanks it works...., –  wordpresrox May 17 '13 at 8:45
add comment

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.