Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using next_post_link() and previous_post_link() in single-custom.php to browse through post-type "custom".

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  <div id="box-navigation">                 
   <?php previous_post_link( '<div id="navi-left" class="navi">%link</div>', translateString('precedente') ); ?>
   <?php next_post_link( '<div id="navi-right" class="navi">%link</div>', translateString('successivo') ); ?>       
   <div class="clearfix"></div>
  </div>

   other code here...

<?php endwhile; endif; ?>

Untill yesterday i had just 2 posts. Today i pubblished a 3rd post. If i go to new post( 3rd ) page and i click to previuos it goes to previous, then if i click to next i go to 1st post instead to go back to 3rd post.

What's wrong in this?

share|improve this question
1  
Please update your question after you have read this. –  toscho Apr 19 '13 at 9:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.