I can’t get get_next_posts_link
to work. shouldn’t his code work?
<?php echo get_next_posts_link(); ?>
Well, I am trying to get next 5 posts, any idea how?
EDIT:
Accroding to:
<?php next_post_link('<strong>%link</strong>', '%title', TRUE); ?>
Should show me a link to next post in the same category, when I do this nothing is shown. And I do have posts in the category.
Thanks!
Use this for a link to previous posts with directional arrows:
Or this for a link to previous posts that without “<<“:
The code needs to be inside the loop.
If you would have taken the effort to look in the Codex, you would have seen that it works like:
<?php previous_post_link('%link', 'Previous in category', TRUE); ?>