I'm on single-work.php
for a custom post type called work
, inside the loop.
Trying to make two links to the previous and next post.
Using this code:
<?php previous_post_link(); ?>
and
<?php next_post_link(); ?>
But nothing shows up. Am I missing something
Here is my code, very straightforward:
<?php get_header(); ?>
<div class="full" >
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php next_post_link('%link', 'Next post »'); ?>
<?php next_post_link('%link', 'Next post »'); ?>
<?php endwhile; // end of the loop. ?>
</div><!--/full-->
<?php get_footer(); ?>