FacetWP – ignore Membership 2 query

<?php

// Add the following to your child theme's functions.php
add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
    if ( 'ms_relationship' == $query->get( 'post_type' ) ) {
        $is_main_query = false;
    }
    return $is_main_query;
}, 10, 2 );