mgibbs189

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

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