[SOLVED] Interfering with FacetWP
-
A query from WP GDPR Compliance plugin gets set as the main query, which interferes with the
facetwp_is_main_query
loop.This is breaking all FacetWP facets and templates from filtering posts and products.
I’ve found a code that fixes it:
/** WP GDPR Compliance breaks main_query fix ** Add to functions.php **/ add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) { if ( '[wpgdprc_access_request_form]' == $query->get('s') ) { return false; } return $is_main_query; }, 10, 2);
Code source by djrmom on github
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[SOLVED] Interfering with FacetWP’ is closed to new replies.