WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create two queries.

In the first query, I will, for example, display 6 posts, in a given order.

In the second query, I want to display the same 6 posts, but "offset" the first 3 and then have those same 3 appear at the end.

For example, Query #1 would return:

1 2 3 4 5 6

Then, Query #2 would return:

4 5 6 1 2 3

Any ideas on how I might pull this off??

share|improve this question
up vote 2 down vote accepted

No need to have two queries, you can just reuse the same post data by resetting the current post position and running the loop again: $wp_query->current_post = 2;

you'd have to do this twice to achieve what you're asking, and stop it the second time at the third post.

share|improve this answer
Thank you for the quick response, I will give this a try and report back! – Jonathan Wold Apr 22 '11 at 2:16
This did the trick - Thank you! – Jonathan Wold Apr 25 '11 at 0:40

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.