JPDS / Avada-Child-Theme

mgibbs189

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

function adjust_search_query( $args, $class ) {
if ( $class->is_search && ‘post’ == $args[‘post_type’] ) {
$args[‘post_type’] = ‘any’;
}
return $args;
}
add_filter( ‘facetwp_query_args’, ‘adjust_search_query’, 10, 2 );
{{/gist}}