How to get URL for next posts page?
-
Hi everyone,
I’m trying to get the the URLs for the next and previous posts links, i.e. what would typically be called the “Older Posts” or “Next Page” on the homepage index.php. The code I have for the next posts is
<?php next_posts_link(__('Older posts', '5years') . ' →') ?>
However, I only want the URL, not the entire link code. What is the PHP function that will call just that URL?
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to get URL for next posts page?’ is closed to new replies.