Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jeherve
Created March 24, 2014 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeherve/2541d2eef8231507d299 to your computer and use it in GitHub Desktop.
Save jeherve/2541d2eef8231507d299 to your computer and use it in GitHub Desktop.
Add post__not_in to IS query args
<?php
function jeherve_is_allowed_vars( $vars ) {
$vars[] = 'post__not_in';
return $vars;
}
add_filter( 'infinite_scroll_allowed_vars', 'jeherve_is_allowed_vars' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment