Created
February 2, 2017 15:59
-
-
Save mgibbs189/bd5937ff08d59835faf5bf4b28933c29 to your computer and use it in GitHub Desktop.
FacetWP - force is_search = false
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'facetwp_filtered_post_ids' function( $post_ids, $class ) { | |
$class->is_search = false; // prevent changing orderby | |
return $post_ids; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment