Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

snyffo progress

// Add Shortcode
function snyffo_progress( $atts ) {

	// Attributes
	$atts = shortcode_atts(
		array(
			'group' => '',
		),
		$atts,
		'snyffo_progress'
	);

	$args = array(
	    'post_type' => 'snyffo_pstage',
	    'tax_query' => array(
	        array(
	            'taxonomy' => 'progress_group',
	            'field'    => 'slug',
	            'terms'    => $atts['group'],
	        ),
	    ),
	);
	$query = new WP_Query( $args );
	
	if ( $query->have_posts() ) {
	    $output =<<<HTML
	<div id="crumbs">
		<ul>
	HTML;
	
	    while ( $query->have_posts() ) {
	        $query->the_post();
	        $output .= "<li>" . get_the_title() . "</li>n";
	    }
	
	    
	
	    $output .=<<<HTML
		</ul>
	</div>
	HTML;
	} else {
	    $output = "";
	}
	
	wp_reset_postdata();
	
	return $output;
	

}
add_shortcode( 'snyffo_progress', 'snyffo_progress' );