Query two previous and next posts
I am confronted with a problem. Let’s say I have a custom post type and want to show 4 posts at the end of the article, that come before and after that post. An advanced next_post_link() and previous_post_link() so to say.
Eg. I have 10 articles:
I am now at article 7 and want to show a list of the following:
I am clueless and would kindly appreciate help.
- The topic ‘Query two previous and next posts’ is closed to new replies.