Hi Adarsha,
To clarify, are you referring to excluding the current post in your Query Loop Block?
If so, you can use a filter to do as such.
Add my-class-name
to the Post Template Block as such: https://share.getcloudapp.com/qGuOrgnZ
Then add this PHP snippet:
add_filter( 'generateblocks_query_loop_args', function( $query_args, $attributes ) {
if ( ! empty( $attributes['className'] ) && strpos( $attributes['className'], 'my-class-name' ) !== false ) {
$query_args['post__not_in'] = [get_the_ID()];
}
return $query_args;
}, 10, 2 );
Adding PHP reference: https://docs.generatepress.com/article/adding-php/#code-snippets
Hope this helps!