WP_Query args to show posts from specific custom taxonomy
Taxonomy query doesn’t work without terms parameter. So you have to first query all the regions term then assign term ids to taxonomy query. Here’s the solution – $terms = get_terms( array( ‘taxonomy’ => ‘regions’, ‘fields’ => ‘id=>slug’, ) ); $args = array( ‘orderby’ => ‘date’, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, … Read more