WordPress.org

Ready to get started?Download WordPress

Forums

Trouble Navigating "Paged" Archive Posts with 2.3 alpha (1 post)

  1. codymckibb
    Member
    Posted 6 years ago #

    Using the alpha dev version of 2.3 for a simple archives page: <http://blog.lifebeyondcode.com/archives/>, however when you click on a Month or Category, for example <http://blog.lifebeyondcode.com/2007/03/>, it will only display the latest 10 posts in that Month or Category, but the navigation links will NOT take you to the older posts.

    It attempts to access the "month archive"/page/2/

    But apparently that doesn't exist. Is there a way to make this work? Or display ALL of the posts in that date or category rather than just the latest 10?

    Is there something wrong with my code or with the MySQL database or something?

    <?php get_header(); ?>

    <div id="singlecontent">

    <?php if (have_posts()) : ?>

    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2>Entries in the '<?php echo single_cat_title(); ?>' Category</h2>

    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h2>Entries Written on <?php the_time('F jS, Y'); ?></h2>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2>Entries Written in <?php the_time('F Y'); ?></h2>

    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h2>Entries Written in <?php the_time('Y'); ?></h2>

    <?php } ?>

      <?php while (have_posts()) : the_post(); ?>

    • "><?php the_title(); ?><span class="date"><?php the_time('M d Y') ?></span>
    • <?php endwhile; ?>

    <div class="navigation">
    <div class="left"><?php next_posts_link('<span>«</span> Previous Entries') ?></div>
    <div class="right"><?php previous_posts_link('Next Entries <span>»</span>') ?></div>
    <div class="clear"></div>
    </div>

    <?php else : ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    </div> <!-- closes container -->
    <?php include(TEMPLATEPATH . '/bottombar.php') ?>

    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic