I need to use Posts element to display posts from two post types. Since I have to select a source, I've selected Post, but then my custom query can't override this.
Following the first example from these instructions https://developers.elementor.com/docs/hooks/custom-query-filter/, I've added this code to functions.php, but with no effect. When I override posts_per_page or something else, that works, but 'post-type' does not.
add_action( 'elementor/query/latest-posts-home', function ( $query ) {
$query->set('post-type', array('alicorn_case_studies', 'post'));
});