I would like to place the facetWP filters (https://facetwp.com/) in a category on my website (https://bit.ly/3G0MBkB). I’m currently disabling the_loop (using the filter below) and inserting the facetWP shortcode via a hook in GP. I would like to know if this is ok, or if there is a better way to do this.
This is the filter:
add_filter( ‘generate_has_default_loop’, function( $show ) {
if ( is_category( array(59,60) ) ) {
return false;
}
return $show;
} );