Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Cleint-103 query Footer

// WP_Query arguments
$args = array (
	'post_type'              => 'cpt_sponsoren',
	'pagination'             => false,
	'order'                  => 'ASC',
	'orderby'                => 'date',
);

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

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

// Restore original Post Data
wp_reset_postdata();