“Previous Entries” Link Broken

  • Unknown's avatar

    Currently the homepage of my site contains two loops, each displaying only content from an individual category (one for news, the other featured content.) It works very well, but when I click on the “Previous Entries” link at the bottom of one loop/feed, it takes me straight back to the home page and doesn’t list any older posts. I would like it to take the user to a page listing just older posts from that category. I am at a complete loss at how to do this.

    The site is at clevelandnorml.org

    Here is the code for the loop(s).

    <?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>
    			</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(); ?>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    The blog you specified at clevelandnorml.org does not appear to be hosted at WordPress.com.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘“Previous Entries” Link Broken’ is closed to new replies.