Prevent duplicate post from dynamic multiple loops
Don’t run a new query for your CPT at every iteration of the main Loop. Pull it once, outside the Look with ‘posts_per_page’ => 4 then increment it as you go. In other words: $counter = 1; $loop = new WP_Query( array( ‘post_type’ => ‘post’, ‘posts_per_page’ => 20 ) ); $inner_query = new WP_Query( array( … Read more