Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

WOD Query

// WP_Query arguments
$args = array (
	'post_type'              => array( 'wod' ),
	'order'                  => 'DESC',
	'orderby'                => 'date',
);

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

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

// Restore original Post Data
wp_reset_postdata();