Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

nieuws-wp-query

// WP_Query arguments
$args = array(
	'post_type'              => array( 'post' ),
	'post_status'            => array( 'publish' ),
	'tax_query'              => array(
		'relation' => 'AND',
		array(
			'taxonomy'         => 'category',
			'terms'            => array( 'algemeen-nieuws', 'alleen-voor-ouders', 'meenemen-in-nieuwsbrief' ),
			'field'            => 'slug',
		),
	),
	'date_query'             => array(
		'relation' => 'AND',
		array(
			'year'          => 2018,
			'month'         => 10,
			'day'           => 1,
			'compare'       => '>=',
			'column'        => 'post_date',
		),
		array(
			'year'          => 2018,
			'month'         => 10,
			'day'           => 1,
			'compare'       => '>=',
			'column'        => 'post_modified',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();