Support » Fixing WordPress » Date & Category archives don’t navigate correctly

  • I am working on a project for a client. He is set up with an alpha development version of 2.3.

    He has 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 (like it’s taking the “Show at most X posts” command from the “Options–>Reading Options” Page within the control panel), 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 } ?>
    
    		<ul>
    		<?php while (have_posts()) : the_post(); ?>
    			<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a><span class="date"><?php the_time('M d Y') ?></span></li>
    			<?php endwhile; ?>
    		</ul>
    
    	<div class="navigation">
    		<div class="left"><?php next_posts_link('<span>&laquo;</span> Previous Entries') ?></div>
    		<div class="right"><?php previous_posts_link('Next Entries <span>&raquo;</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(); ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Date & Category archives don’t navigate correctly’ is closed to new replies.