Title: Using Narchives with Include?
Last modified: August 18, 2016

---

# Using Narchives with Include?

 *  Resolved [ericakadisco](https://wordpress.org/support/users/ericakadisco/)
 * (@ericakadisco)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/using-narchives-with-include/)
 * Hi,
 * I created a nice narchive page that works on it’s own:
 * [http://approachanxiety.com/narchives.php](http://approachanxiety.com/narchives.php)
 * But then when I try to use it as an include, the entries are missing and all 
   I see are the category headers:
 * [http://approachanxiety.com/?page_id=3](http://approachanxiety.com/?page_id=3)
 * Here is the code for my template page:
 * `<?php
    /* Template Name: Archives */ ?> <?php get_header(); ?> <?php get_sidebar();?
   > <div id="content" class="narrowcolumn"> <?php if (have_posts()) : while (have_posts()):
   the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><font color
   =#5C5858><?php the_title(); ?></font></h2> <div class="entry"> <?php include('
   narchives.php'); ?> </div> </div> <?php endwhile; endif; ?> <?php edit_post_link('
   Edit this entry.', '', ' '); ?> </div> <?php get_footer(); ?>
 * Am I using this the wrong way?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/using-narchives-with-include/#post-493125)
 * _Am I using this the wrong way?_
    Yes!
 * Don’t create a separate physical file!
    Create a Page template with the code 
   for whatever archives you want AND create a new Page by using that template. 
   It’s that simple. [http://codex.wordpress.org/Pages#Page_Templates](http://codex.wordpress.org/Pages#Page_Templates)

Viewing 1 replies (of 1 total)

The topic ‘Using Narchives with Include?’ is closed to new replies.

## Tags

 * [archives](https://wordpress.org/support/topic-tag/archives/)
 * [entries](https://wordpress.org/support/topic-tag/entries/)
 * [narchives](https://wordpress.org/support/topic-tag/narchives/)

 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/using-narchives-with-include/#post-493125)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
