Taxonomy query
// WP_Query arguments
$args = array(
'post_type' => array( 'workshop' ),
'post_status' => array( 'published' ),
'nopaging' => true,
'order' => 'ASC',
'orderby' => 'menu_order',
);
// The Query
$workshops_query = new WP_Query( $args );
// The Loop
if ( $workshops_query->have_posts() ) {
while ( $workshops_query->have_posts() ) {
$workshops_query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();