Hi Sigfus,
We recommend now using GenerateBlocks’ Query Loop Block for queries.
With this, you can filter in the Search & Filter ID for it to work.
Specifically, you could try adding this snippet:
add_filter( 'generateblocks_query_loop_args', function( $query_args, $attributes ) {
if ( ! is_admin() && ! empty( $attributes['className'] ) && strpos( $attributes['className'], 'cu-query' ) !== false ) {
$query_args['search_filter_id'] = 123;
}
return $query_args;
}, 10, 2 );
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
Then, give the Grid Block of the Query Loop a class of cu-query.
Adding Custom Classes: https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/
This code adds the Search & Filter ID as an argument to the Query.