Sights Sounds Apprenticeship page
// WP_Query arguments
$args = array(
'post_type' => array( 'sights-sounds' ),
'tax_query' => array(
array(
'taxonomy' => 'sights-sounds-category',
'terms' => 'apprenticeships',
'field' => 'slug',
),
),
);
// The Query
$apprenticeship_query = new WP_Query( $args );
// The Loop
if ( $apprenticeship_query->have_posts() ) {
while ( $apprenticeship_query->have_posts() ) {
$apprenticeship_query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();