Remove custom posts that match taxonomy value
something along these lines should do it: $args = array( ‘post_type’ => ‘listings’, ‘posts_per_page’=> -1, ‘post_status’ => ‘any’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘status’, ‘field’ => YOUR FIELD NAME HERE??? ‘terms’ => ‘standard’ ) ) ); $query = new WP_Query( $args ); foreach( $query->posts as $id ){ wp_delete_post( $id->ID, TRUE ); }