I am currently developing a portfolio section on my website and when the single posts are viewed, there are some previous and next links to take the user to the next post.
Upon reaching the first post single view, the previous button takes the user to the fifth post in the series rather than looping to number 12 in the series as expected.
Here is the code I used to generate the previous and next buttons,
<div class="five columns portfolio-nav"> <ul> <li><?php previous_post_link('%link'); ?></li> <li><a href="<?php echo get_permalink( 187 ); ?>" class="backportfolio">My link</a></li> <li><?php next_post_link('%link'); ?></li> </ul> </div>
the portfolio test site is at http://sandpit.jonathanbeech.co.uk/portfolio-two/
Is there a way of configuring these buttons to allow them to move to the appropriate post