Multiple Post Types

I use different post types and I love the possibility to select a post type in de Live Composer module “posts”.
But now I want to create a blog page where I show all the types, sorted by date. How can I select multiple types (two, more or all of them)?

Second question: when I show all the types on my blog page, how can I provide the possibility to choose between types or categories on that page?

That’s not an option in the theme as it wouldn’t make much sense to have it. But if you have a child theme you can add this code in the child’s functions.php and alter it as needed:


function my_get_posts( $query ) {
	if ( is_home() && $query->is_main_query() )
		$query->set( 'post_type', array( 'post', 'page', 'posttype1', 'posttype2', 'posttype3' ) );
	return $query;
}
add_filter( 'pre_get_posts', 'my_get_posts' );

Filtering is not possible as different post types would have different taxonomies.