1$the_query = new WP_Query( array(
2 'post_type' => 'Adverts',
3 'tax_query' => array(
4 array (
5 'taxonomy' => 'advert_tag',
6 'field' => 'slug',
7 'terms' => 'politics',
8 )
9 ),
10) );
11
12 // The Loop
13 if ( $the_query->have_posts() ) {
14 while ( $the_query->have_posts() ) {
15 $the_query->the_post();
16 the_title(); //show post title
17 }
18 }