Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Custom query

// WP_Query arguments
$args = array (
	'post_type'              => array( 'post', ' movies', ' portfolio' ),
	'cat'                    => 'category_id1, category_id2',
	'category_name'          => 'category_name1, category_name2',
	'tag'                    => 'tag1, tag2, tag3',
	'author_name'            => 'author_nicename1',
	'pagination'             => false,
	'posts_per_page'         => '3',
	'ignore_sticky_posts'    => true,
	'orderby'                => 'date',
);

// The Query
$custom_query = new WP_Query( $args );

// The Loop
if ( $custom_query->have_posts() ) {
	while ( $custom_query->have_posts() ) {
		$custom_query->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();