Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

IT Select Courses by Category(Group)

// WP_Query arguments
$args = array(
	'post_type'              => array( 'course' ),
	'post_status'            => array( 'publish' ),
	'nopaging'               => true,
	'posts_per_page'         => '-1',
);

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