Last active
February 17, 2021 02:26
-
-
Save djrmom/e9b54bf03c8185e0260d9e38cbef5f7d to your computer and use it in GitHub Desktop.
facetwp elementor facetwp false with query id
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 | |
/** if facet is identifying the wrong query in elementor | |
** add a custom query id 'block_facet' to your query settings in the element | |
** to NOT have facet identify as the main query | |
** https://developers.elementor.com/custom-query-filter/ | |
**/ | |
add_action( 'elementor/query/block_facet', function( $query ) { | |
$query->set( 'facetwp', false ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment