Support » Fixing WordPress » Upgraded to 2.5, my Previous and Next links disappeared

  • The navigation links at the bottom of my index and search results pages are no longer showing up. The space is there for them, but no links.

    If I force it by manually adding /page/2 to the URL, I get a “Newer Entries” link where it should be, but still no “Previous Entries.” And older pages do the same thing. According to my WP, I have no previous posts (even though I have about 1,000). What the hey?

    I’ve tried changing to different templates, with no luck. My navigation code is the same as what appears in the latest default index.php. I skimmed the forums here and saw issues with permalinks, but changing mine to Default didn’t help. My index page does not contain query_posts() anywhere.

    Readers can see my last 10 posts and that’s it. Help! Here’s what I’m using:

    <?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"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Check your functions.php file and make sure it’s still set up in there. I accidentally deleted mine and the same thing happened.

    Thread Starter cabridges

    (@cabridges)

    That could be it – this theme doesn’t have one. It didn’t have one before and worked fine, but I guess 2.5 requires it?

    What needs to be in it? The one in the supplied “classic” theme only has a register_sidebar function. What do I need to add for this?

    (And thanks for the quick response!)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upgraded to 2.5, my Previous and Next links disappeared’ is closed to new replies.