Site logo

Archived topic

Create custom archive

1 reply · Started by Hilton on December 16, 2021

Viewing posts 1–2 of 2

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;
} );

Hi Hilton,

That looks good to me :)

This archived topic is closed to new replies.