If I have done a post query you have got a long list of posts in the WP_Object
$all_posts, how, during the output cycle, can I extract the following five posts from
$all_posts in the new WP_Object
I am already using a counter successfully,
$i, in the loop to identify the position at which this should occur.
What I don't understand is how to get the next five posts in one
I have tried…
$five_posts = new WP_Query(); $five_posts->posts = array_slice( $all_posts->posts, $all_posts->current_position, $all_posts->current_position + 5 );
But that only results
(posts) part of the query, split into an array, and omit the actual query data, which I would like to keep.
So basically how do I extract five posts from
$all_posts in a way that maintains
$five_posts as a complete