Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Looking for a way to on single.php fetch and show the actual post, and then by looking on the menu_order value of that specific post (lets say the post have menu_order value 3 in this case) go and fetch the 2 posts before that one i.e. the posts with menu_order value 1 and 2. Also fetch 2 posts after, i.e. the posts with the value 4 and 5. And how you'd check to see if there even are as many as +/- 2 posts in relation the the current post.

Anyone have an idea how to sort that out?

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.