I can’t for the life of me get this to work – this is the code in my single-osu_work.php file which is used for this post type, but I can’t get the next and previous post links to appear – can you see a problem? I’ve tried putting the pagination links within the loop but still nothing.
Thanks,
Osu
if (have_posts()) : while (have_posts()) : the_post(); ?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h1 id="mainheading"><?php the_title(); ?></h1>
<?php the_content(); ?>
<footer class="postmetadata">Date: <?php the_date('Y'); ?></footer>
</article>
<?php endwhile;
else : ?>
<article id="nada">
<h2 id="mainheading">Nothing found</h2>
<p>Apologies, but you've come across a page that can't be found.</p>
<p>Please use the search function or continue browsing.</p>
<?php echo get_search_form(); ?>
</article>
<?php endif; ?>
<div class="next-posts"><?php next_post_link('%link', 'Newer entry >', true) ?></div>
<div class="prev-posts"><?php previous_post_link('%link', '< Older entry', true) ?></div>
<div class="clear"> </div>