Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
http://wordpress.org/support/topic/how-to-add-four-wp-queries-without-duplicate-posts
query for loop1
loop1:
$do_not_duplicate[] = $post->ID;
end loop1;
query for loop2 including 'post__not_in => $do_not_duplicate'
loop2:
$do_not_duplicate[] = $post->ID;
end loop2;
query for loop3 including 'post__not_in => $do_not_duplicate'
loop3:
$do_not_duplicate[] = $post->ID;
end loop3;
query for loop4 including 'post__not_in => $do_not_duplicate'
loop4:
end loop4;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.