Previous and Next_Posts_Link not working… :(
-
I’ve made some changes to my blog page at https://www.smartshoputah.com/blog throughout today. So far, I adjusted the number of posts on the front page, added <?php the_excerpt(); ?> in place of <?php the_content(‘[More]’); ?>, and added a theme function to include a link to read the full post from the summary.
Before I got all of that to work, I had been toying with <?php next_posts_link(); ?> and <?php previous_posts_link(); ?>. I was able to insert those lines in the index template along with some HTML code to move back and forth between posts, so it worked. However, I realized that I was changing between page numbers instead of post URLs, so my navigation wasn’t right. I set out to fix that but first took care of the other things mentioned above, then noticed that the functions for previous and next post won’t work at all now. I pasted it into many locations on several pages, even the index template again (though I believe it should go into the single.php file) and it won’t come up anywhere. I’ve been able to piece together everything so far, but this has left me befuddled. Any ideas on what could be causing this? Let me know if a copy/paste of my page content would help.
Thanks in advance for any advice offered.
- The topic ‘Previous and Next_Posts_Link not working… :(’ is closed to new replies.