FIX next_posts_link() & previous_posts_link() ON FIRST AND LAST PAGE.
-
Hello,
I’m having some trouble with the next_posts_link() & previous_posts_link() on the homepage of my site.
As I’m sure many people have noticed either of these links do not display if you are on the first or last page that displays blog posts.
Is there a way to keep the next_posts_link() & previous_posts_link() visible on all pages even if technically the link cannot for backward or forward if you are on the first and last page of a site with blog posts?
Ryan from 3 Roads Media wrote an excellent blog post that outlined a very simple method of how to fix next_post_link() and previous_post_link() functions from disappearing on the first and last pages when viewing single posts.
Here is the post: https://www.3roadsmedia.com/blog/improving-wordpress-page-navigation/
I am interested to do the exact same thing but have it applied to the next_posts_link() & previous_posts_link().
Thanks in advance for everyone’s assistance. I look forward to figuring this out, as I’m sure others would too, since it has been plaguing me for some time.
- The topic ‘FIX next_posts_link() & previous_posts_link() ON FIRST AND LAST PAGE.’ is closed to new replies.