Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

[Article List by Websites] Post => Articles

// WP_Query arguments
$args = array(
	'post_type'              => array( 'Articles' ),
	'post_status'            => array( 'publish' ),
	'order'                  => 'ASC',
	'orderby'                => 'title',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'category',
			'field'            => 'name',
			'operator'         => 'IN',
		),
	),
	'meta_query'             => array(
		'relation' => 'AND',
		array(
			'key'     => 'websites',
			'compare' => 'IN',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();