• http://www.clevelandnorml.org

    Currently the homepage of our blog utilizes two loops, each one listing a separate category of posts (“News” & “Featured Content”). The other pages of the blog do the same thing, essentially using categories to create individual feeds.

    The problem is when you click the “Previous Entries” link at the bottom of the page. It simply takes you back to the same page, same posts, but with a different permalink address. I would like it to go to a page listing older posts for just that specific category.

    The “Media” page is the same way. I had to use ‘showposts=30’ to prevent loosing access to content!

    Here is one of the loops I use:

    <?php if (have_posts()) : ?>
    
    			<?php query_posts('cat=5'); while (have_posts()) : the_post(); ?>
    			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    				<div class='news_item'>
    				<p class='news_headline'><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
    				<!-- <small><?php the_time('F jS, Y') ?>   ?> </small> Date & Time Code-->
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div><br />
    
    			</div>
    
    			<?php endwhile; ?>
    
    			<div class="navigation">
    
    					<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    					<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    				</di
    			</div>
    
    			<?php else : ?>
    
    			<h2 class="center">Not Found</h2>
    			<p class="center">Sorry, but you are looking for something that isn't here.</p>
    			<?php get_search_form(); ?>
    			<?php endif; ?>
    		</div>
    	</div>
    	<?php wp_reset_query(); ?>

    Thanks for the help!

Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘“Previous Entries” Link Broken’ is closed to new replies.