Title: Archives / URL
Last modified: August 18, 2016

---

# Archives / URL

 *  [cocko](https://wordpress.org/support/users/cocko/)
 * (@cocko)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/archives-url/)
 * Hi,
 * what file do I have to create, so that the monthly archives get displayed?
 * [http://www.nabooisland.com/archives/](http://www.nabooisland.com/archives/)
 * e.g. [http://www.nabooisland.com/2006/02/](http://www.nabooisland.com/2006/02/)
   displays the main page, but not the archives for February :-/
 * greetings, Johannes

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/archives-url/#post-339934)
 * That should work without any special file. See [Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
 *  Thread Starter [cocko](https://wordpress.org/support/users/cocko/)
 * (@cocko)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/archives-url/#post-339936)
 * hmm, should. My Archive Template:
 * `
    <?php /* Template Name: archives */ ?> <?php get_header(); ?>
 * <div id='content'>
 * <?php if (have_posts()) : ?>
 * <?php while (have_posts()) : the_post(); ?>
 *  <h2>Archive – All Entries</h2>
 *  <?php the_content(); ?>
    -  <?php wp_get_archives('show_post_count=1'); ?>
 * <?php endwhile; ?>
 * <?php endif; ?>
 * <?php comments_template(); ?>
 * </div>
 * <?php get_footer(); ?>
 * piece of my index.php file:
 * `
    <div id='content'> <?php $posts = query_posts('cat=-4'); ?> <?php if (have_posts()):?
   > <?php while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> ...
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/archives-url/#post-339949)
 * The “Archives” [Page](http://codex.wordpress.org/Pages) template –> usually the`
   archives.php` template file in a theme and the `archive.php` (without the -s 
   for plural!) in a theme are two very different things.
    You have the Page template
   and it’s used when displyaing the Page you linked above. The `archive.php` file(
   if exists) is used to display monthly and category archives. If ther isn’t such
   a file – index.php is used (see: [Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)).
   So, if your monthly archives don’t show up, there is something wrong with your
   setup. Do they work if you switch to the default or the classic theme?
 *  Thread Starter [cocko](https://wordpress.org/support/users/cocko/)
 * (@cocko)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/archives-url/#post-340034)
 * I have created an archive.php file, so it’s working now, many thanks 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Archives / URL’ is closed to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [cocko](https://wordpress.org/support/users/cocko/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/archives-url/#post-340034)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
