Created
October 10, 2018 14:17
-
-
Save mgibbs189/82a867398ec6bc1410ddf2859b19ec6d to your computer and use it in GitHub Desktop.
FacetWP ignore the home / blog page
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_is_main_query', function( $is_main_query, $query ) { | |
return ( $query->is_home() ) ? false : $is_main_query; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment