Post By Post Taxonomy
Thu Jul 06 2023 11:57:38 GMT+0000 (Coordinated Universal Time)
Saved by
@gshailesh27
<?php $the_query = new WP_Query( array( 'post_type' => 'Adverts',
'tax_query' => array( array ( 'taxonomy' => 'advert_tag', 'field' => 'slug', 'terms' => 'politics', ) ), ) );
while ( $the_query->have_posts() ) { $the_query->the_post(); ?>
<a href=””><?php the_title(); ?></a>
<?php endwhile;
} wp_reset_postdata(); ?>
content_copyCOPY
Comments