Forums

"Older Posts" Link going to dead page (2 posts)

  1. lauraeyes2
    Member
    Posted 10 months ago #

    The main page of my blog shows the set number of postings, and at the bottom is has the "Older posts" link that should scroll to the next set of postings beyond those on the first page.

    When i click on this link, it says "page not found"

    I am pretty sure this used to work at some point but I honestly haven't clicked it in some time. Any suggestions on how to make this work?

    Laura
    http://www.twofrugalmommas.com

  2. irfan_np
    Member
    Posted 10 months ago #

    http://codex.wordpress.org/Next_and_Previous_Links

    <?php if (is_single()) : ?>
    
    	<div class="navigation">
    
    		<span class="navleft"><?php previous_post_link('← %link') ?></span>
    
    		<span class="navright"><?php next_post_link('%link →') ?></span>
    
    	</div>
    
    <?php else : ?>
    
    	<div class="navigation">
    
    	<?php 
    
    		if (function_exists('wp_pagenavi')) {
    
    			wp_pagenavi();
    
    		} else {
    
    	?>
    
    		<span class="navleft"><?php next_posts_link('← Earlier Posts') ?></span>
    
    		<span class="navright"><?php previous_posts_link('Newer Posts →') ?></span>
    
    		<?php } ?>
    
    	</div>
    
    <?php endif; ?>

    This is s sample from a theme named primepress

Reply

You must log in to post.

About this Topic