[Support request] Create custom archive

Home Forums Support [Support request] Create custom archive

Home Forums Support Create custom archive

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2051182
    Hilton

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

    #2051286
    Ying
    Staff
    Customer Support

    Hi Hilton,

    That looks good to me 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.