Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Get Custom Taxonomy List

// Add Shortcode
function get_courses() {

	// Get the taxonomy's terms
	$terms = get_terms(
	    array(
	        'taxonomy'   => 'wprm_course',
	        'hide_empty' => false,
	    )
	);
	
	// Check if any term exists
	if ( ! empty( $terms ) && is_array( $terms ) ) {
	    // Run a loop and print them all
	    foreach ( $terms as $term ) { ?>
	        <a href="<?php echo esc_url( get_term_link( $term ) ) ?>">
	            <?php echo $term->name; ?>
	        </a><?php
	    }
	} 

}
add_shortcode( 'get-courses', 'get_courses' );