SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Sep 2009
    Posts
    316
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wordpress: Navigation links won't appear (next and previous)

    This is cross posted on the WP site in case anyone reads this again.


    I am referring to next_posts_link and previous_posts_link. The links aren't showing up. No idea why. I'm creating a theme more or less from scratch so maybe I'm missing something.

    Code:
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title('<strong><h2 class="title sifr">', '</h2></strong>'); ?><br /></a>
    
    	<div <?php post_class() ?> id="post">
    		<div class="overlayBg"></div>
    		<div class="postContent box">
    			<?php the_content('Read the rest of this entry &raquo;'); ?>
    			<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments ', '1 Comment ', '% Comments '); ?></p>
    			<?php endwhile; ?>
    			<?php next_posts_link('&laquo; Older Entries') ?>
    			<?php previous_posts_link('Newer Entries &raquo;') ?>
    			<?php else : ?>
    
    			<h2 class="center">Not Found</h2>
    			<p>Sorry, but you are looking for something that isn't here.</p>
    			<?php endif; ?>
    And the actual page is here. Any advice on what I'm doing wrong?

  2. #2
    SitePoint Addict
    Join Date
    Sep 2009
    Posts
    316
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, so I almost understand the problem. Almost. When I view by category, the navigation links appear.

    However when I view this page, no navigation links.

    How can I add navigation links to that page without it? What page do I need to edit to do that? Is it single.php? I thought it was index.php?


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •