facetwp elementor facetwp false with query id

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php
/** if facet is identifying the wrong query in elementor
** add a custom query id to your query settings in the element and
** use that name in the filter below in place of my_custom_filter
** https://developers.elementor.com/custom-query-filter/
**/
add_action( ‘elementor/query/my_custom_filter’, function( $query ) {
$query->set( ‘facetwp’, false );
} );
{{/gist}}