I have a page called page-blog.php that I’ve used WP_Query to display the six post recent blog posts which is working fine.
I want to create a link at the bottom of these six posts to older entries. I’ve tried next_posts_link and nothing appears. What am I doing wrong?
Did you use next_post_link within the loop? and what arguments did you pass in ?
To show older, shouldn’t you use previous_posts_link instead of next_posts_link?
I tried both next and previous. Code was outside of the wp query loop as that was just repeating it six times when inside my loop.
I just used next_posts_link(‘Older Entries »’, 0);
You must be logged in to reply to this topic.