• Resolved ericakadisco

    (@ericakadisco)


    Hi,

    I created a nice narchive page that works on it’s own:

    https://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:

    https://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)
Viewing 1 replies (of 1 total)
  • The topic ‘Using Narchives with Include?’ is closed to new replies.