WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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 ;

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


share|improve this answer

Your Answer


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.