Previous Post/Next Post links not showing across multiple templates
-
I have two blogs:
and
https://www.miss-britt.com/photo
I have been battling the previous/next post link issue for months.
On my main blog, the “older” link shows up, but takes you back to the home page when you click it.
The code on the main blog index.php file is:
<?php endwhile; ?> <!--- the previous and next post links --> <div class="navigation"><p><?php posts_nav_link(); ?></p></div> <!--- closes the previous and next post links --> <?php else : ?>
I put the before/after php in to show you where in the template it is
The link shows up, it says it’s linking to page 2 – but it takes you to the home page over and over again.
On the individual posts I have tried
<?php previous_post('« « %', '', 'yes'); ?> | <?php next_post('% » » ', '', 'yes'); ?>
as well as previous_post_link
NOTHING shows up on the individual post pages except the hash mark divider (it’s not there right now, just when I’m testing it)
The navigation on the photo blog is
<!-- BEGIN navigate --> <div id="navigate"> <div id="navigate-inner" class="clearfix"> <?php $wp_query->is_single = true; ?> <span class="previous"><?php previous_post('‹ %', '', 'yes', 'no'); ?></span> <span class="next"><?php next_post('% ›', '', 'yes', 'no'); ?></span> </div> </div> <!-- END navigate -->
Same thing – nothing shows up.
There isn’t a single post page in that template.
I’ve seen other people ask this question in the forums and get referred back to the codex. I feel like I have tried to implement the codex over and over again with no results.
- The topic ‘Previous Post/Next Post links not showing across multiple templates’ is closed to new replies.