I am not an expert. I have used a tutorial to write a custom query like this

```
add_action( 'elementor/query/my_query_by_post_types', function( $query ) {
$query->set( 'post_type', [ 'libri', 'post'] );
}   );

```

This has been deployes via snippets plugin. Works fine and filter 'libri' (which is a custom type) and posts. I need to enhance because i need only 'some' post, not all, so I need to filter by post category. Can anybody help to do that?
Thanks.