Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

dp_plans

// WP_Query arguments
$args = array (
	'post_type'              => 'dp_plans',
);

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

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

// Restore original Post Data
wp_reset_postdata();