FacetWP – force is_search = false

mgibbs189

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

add_filter( ‘facetwp_filtered_post_ids’ function( $post_ids, $class ) {
$class->is_search = false; // prevent changing orderby
return $post_ids;
}, 10, 2 );

{{/gist}}