Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

ICE-Marketplace

// WP_Query arguments
$args = array(
	'post_type'              => array( 'marketplace' ),
	'posts_per_page'         => '100',
	'orderby'                => 'rand',
);

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

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

// Restore original Post Data
wp_reset_postdata();