• Um… when it says “next post” it links to the previous. where it says “previous” it links to the next. how do i fix this conflict?

    Here is the next,prev part:

    <div class=”navigation”><p><?php posts_nav_link(); ?></p></div>
    <div style=”clear: both”></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 endif; ?>

    and here is the site:
    My web comic

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have had the same problem, although it was caused only when I added the code to change the order of the posts to display in ascending order of postID (so that newest post was put at bottom of page), Have you used a similar method?

    Unfortunatly I do not know how to fix this as I ended up taking the code back out for the time being until I get more work done on the site and can spend the time studying this properly.

    Any help out there would be great.

    Thread Starter breegeek

    (@breegeek)

    i dunno i guess hopefully someone will come by and help

    I know this may not be the solution and I havn’t had a chance to test my theory but maybe you want to give it a try and see if it works? (possible workaround)

    within the archive.php file (located inside your themes folder) toward the bottom of the page the following lines are contained:

    <div class="navigation">
      <div class="alignleft">
          <?php next_posts_link('&laquo; Previous Entries') ?>
      </div>
    
      <div class="alignright">
          <?php previous_posts_link('Next Entries &raquo;') ?>
      </div>
    </div>

    I suggest that you move the order that these are listed and change the text within the call so that you have something like:

    <div class="navigation">
      <div class="alignleft">
         <?php previous_posts_link('&raquo; MORE Entries') ?>
       </div>
       <div class="alignright">
         <?php next_posts_link('LAST Entries &laquo;') ?>
      </div>
    </div>

    Notice that I have only changed the text displayed so that it shows the opposite instructions to what will be carried out and moved the >> symbol to the opposite side of each instruction.

    The reason for moving the order of them being displayed is to make sure that the links are aligned to the correct side of the page.

    Let me know if this works, I dont see why it shouldnt!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“previous” leads to next. “next” leads to previous?!’ is closed to new replies.