Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
if ( 'search' == FWP()->helper->get_uri() && ! in_array( 'secondary_content', (array) $query->get( 'post_type' ) ) {
return false;
}
return $is_main_query;
}, 10, 2 );
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.