Apply query arguments after the nth post
I can't seem to find an answer/solution to this. If there is one out there, please post a link.
My understanding is that in a wp_query
, offset
refers to the results of the query. So if I set 'offset' = 4
, it will ignore the first 4 posts that match the arguments.
What I'm interested in is ignoring the most recent - let's say - 4 posts and only run the query and check for posts that match the arguments starting with the 5th post.
Is this even possible?
Thank you
EDIT:
Let's say I have 10 posts (from newest to oldest):
- Post 10
- Post 9
- Post 8
- Post 7
- Post 6
- Post 5
- Post 4
- Post 3
- Post 2
- Post 1
Let's assume my query WITHOUT ANY OFFSETTING generates a list of 5 posts:
- Post 9
- Post 6
- Post 4
- Post 3
- Post 1
Regardless of how I order my results, if I offset them by 4 (again, based on my understanding of how offset
works), I am now left with 1 post. Let's say I leave them ordered by default. Offsetting them gives me a list with only Post 1.
However, if I manage to skip the very first 4 posts before I even run the query (that would be Post 10, Post 9, Post 8, and Post 7) and only after that run the query and not offset the results at all (all other arguments remaining the same), I now get a list of 4 posts: Post 6, Post 4, Post 3, and Post 1.
And this is what I'd like to accomplish.