Wordpress Archive Next/Prev Links not working

Discussion in 'Programming' started by Stu--, May 5, 2009.

  1. #1
    Anyone know a solution to this? I found this post which explains that it is a bug they may not even realise:

    http://wordpress.org/support/topic/232455

    You can see an example on my site by clicking Next at the bottom of the main page (it shows the same posts regardless):

    http://poweressence.com
    http://poweressence.com/page/2

    Here is my index code:

    <?php 
    get_header();
    ?>
    
    
    <?php $count = 0;?>
    		<?php query_posts('showposts=6'); ?>
    	<?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
    
    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
    
    	<div class="storycontent">
    		<?php the_content(__('(more...)')); ?>
    <div class="spacer"></div>
    <?php edit_post_link(__('Edit This')); ?>
    	</div>
    	
    
    <div class="spacer"></div>
    	<ul class="post-data">
    	<li class="comments">
    <?php comments_popup_link('No Comments &raquo;', '1 Comment &raquo;', '% Comments &raquo;'); ?>
    </li>
    
    
    
    </ul>
    </div><br/>
    
    
    <?php comments_template(); ?>
    					<?php
    					if($count == 1 ) {
    					echo "<div style='clear:both;'></div>";}
    					$count = $count+1;
    					?>
    
    
    <div class="navigation"><p>
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    
    <?php endif; ?>
    
    <?php posts_nav_link(); ?></p></div>
    <?php get_footer(); ?>
    PHP:
    Note the second last line, I have tried moving it around to no avail.
     
    Stu--, May 5, 2009 IP
  2. .htaccess

    .htaccess Peon

    Messages:
    277
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i think there must be problem in your ".htaccess" file :D
    check it and if possible use other .htaccess file from other wordpress installation.
     
    .htaccess, May 5, 2009 IP
  3. Stu--

    Stu-- Active Member

    Messages:
    355
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    53
    #3
    lol really? Or is that your answer for everything?
     
    Stu--, May 5, 2009 IP
  4. .htaccess

    .htaccess Peon

    Messages:
    277
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No ...
    Serioulsy...
    Try replacing your .htaccess file with new file.
     
    .htaccess, May 5, 2009 IP