Single.php Next Post/Previous Post links not displaying
-
When viewed as single posts, my blog entries are not displaying the “Next Post” and “Previous Post” links at the end of my articles.
Here’s the entire code for my theme’s single.php:
The endwhile and endif loop is currently in its original place here:
<?php } } ?> <?php the_content(); ?> <div class="clear"></div> <?php endwhile; ?> <?php endif; ?> <?php wp_link_pages('before=<div id="post-page-navigation">&after=</div>'); ?> <?php if ($options['disable_single_pagination'] != true) { ?> <div id="single-nav" class="clearfix"> <div id="single-nav-left"><?php previous_post_link('%link', 'Previous Post', TRUE); ?></div> <div id="single-nav-right"><?php next_post_link('%link', 'Next Post', TRUE); ?></div> </div> <!-- END single-nav --> <?php } ?>
I moved it according to the theme creator’s fix below and got an error message, so I ended up changed it back to its original location like it appears above.
<?php } } ?> <?php the_content(); ?> <div class="clear"></div> <?php wp_link_pages('before=<div id="post-page-navigation">&after=</div>'); ?> <?php if ($options['disable_single_pagination'] != true) { ?> <div id="single-nav" class="clearfix"> <div id="single-nav-left"><?php previous_post_link('%link', 'Previous Post', TRUE); ?></div> <div id="single-nav-right"><?php next_post_link('%link', 'Next Post', TRUE); ?></div> </div> <!-- END single-nav --> <?php endwhile; ?> <?php endif; ?> <?php } ?>
The theme creator is currently not answering questions in his own help forum, so I’m trying my luck here. My url is https://team1eighty.com for reference if needed.
Some other info that may be useful:
If I take out my current posts and restore test posts from the trash, the Next Post/Previous Post links appear.
I changed the date of the ‘Welcome to my blog’ post. It’s original publish date would have made it the second chronological post, but I wanted it to appear as the first and earliest post, so I changed the date on it. I restored the original publish date and that didn’t help.
I even tried publishing new posts for my articles altogether and trashing the originals. The Next Post/Previous Post links still don’t behave. I’ve also deactivated the following comment related plugins: Commentluv, Twitterlink Comments, and Subscribe to comments reloaded. No luck.
Thanks for any help you can offer.
- The topic ‘Single.php Next Post/Previous Post links not displaying’ is closed to new replies.