I'm using custom post types and custom fields plugins for my custom post types.
I have all other paginations working smoothly on my website except for my single.php. I have a custom post type of "Products" with dozens of products assigned to a custom taxonomy of "Types" and so far I've gotten all of the pagination on my other pages to work with custom queries.
However, in single.php, I dont need to use custom queries so I'm not sure if Im going about this the right way.
Here is my very simple code:
<div class="wrap">
<?php while ( have_posts() ) : the_post(); ?>
//my custom post type content
<?php the_field('image'); ?>
<?php the_content(); ?>
<?php endwhile; // end of the loop. ?>
<nav>
<?php previous_post_link('« Prev') ?>
<?php next_post_link('Next »') ?>
</nav>
</div><!--endwrap-->
When I add the next and previous post links, I can see the Next and Prev link and the bottom of my page, but it is NOT a link to the next or prev page. Its just plain ol static text that does nothing.
Im not using custom queries on this one because like I said you dont have to for single.php to display your custom post type content.
Any suggestions?