WP_Query inside an existing wp_query stops next post showing
We can simplify your code and just run one query instead of two. The answer lies in rewinding your loop and rerunning it multiple times. We will use the build in loop counter, $current_post to count our posts. Just remember, this counter starts at 0, and not 1, so post 1 will be 0 So … Read more