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 have a suitable page, archives.php, located in the theme's root directory, but I cannot get it to show up as a page template. Is there something else I need to do so that it is recognized?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Archives.php is usually not a page template - it is a file used to display all the archived posts (usually some sort of list ...) It is usually triggered by a function that deals with archived posts like

<?php wp_get_archives('type=monthly'); ?>

Anyhow -

A page template file has to have this code in the begining ;

<?php
/*
Template Name: put name here  
*/
?>

in order to show as page template ..

so should you really want to make archives.php to work as a template file -

/*
Template Name: Archives
*/

should work.

share|improve this answer

if you have done correct, it would appear so there is something you are missing. All you need to do is make sure your archive page template resides in your theme with proper Template Name: Archives once done. Go to your pages add new page on right rail it has to appear in drop down.

For your reference have a look at

http://codex.wordpress.org/Creating_an_Archive_Index

share|improve this answer

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.