Skip to content

Instantly share code, notes, and snippets.

@kaskad88
Last active April 20, 2021 13:36
Show Gist options
  • Save kaskad88/83b026b29d230e4dab05a3d9f8446e9d to your computer and use it in GitHub Desktop.
Save kaskad88/83b026b29d230e4dab05a3d9f8446e9d to your computer and use it in GitHub Desktop.
add_filter( 'jet-engine/listing/grid/posts-query-args', function( $args, $instance, $settings ) {
if ( ! empty( $args['post__in'] ) && ! empty( $args['post__not_in'] ) ) {
$args['post__in'] = array_diff( $args['post__in'], $args['post__not_in'] );
}
return $args;
}, 20, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment