Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

get_agenda_minutes

get_agenda_minutes

// WP_Query arguments
$args = array (
	'post_type'              => array( 'post', ' attaachment' ),
	'post_status'            => array( 'published' ),
	'category_name'          => 'agenda, minutes',
	'nopaging'               => true,
	'posts_per_page'         => '300',
	'order'                  => 'DESC',
	'orderby'                => 'date',
);

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

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

// Restore original Post Data
wp_reset_postdata();