mgibbs189

{{gist file=”index.php” lang=”php”}}
<?php

function my_facetwp_is_main_query( $is_main_query, $query ) {
if ( isset( $query->query_vars[‘post_type’] ) ) {
if ( ‘edd_wish_list’ == $query->query_vars[‘post_type’] ) {
$is_main_query = false;
}
}
return $is_main_query;
}
add_filter( ‘facetwp_is_main_query’, ‘my_facetwp_is_main_query’, 10, 2 );
{{/gist}}