I'm trying to figure out how to list all posts that have been sorted under a specific term.
I have a custom post type named "Winemakers" under that, I have a custom taxonomy named "Wine Region". Under Wine Region, I have a city called Elgin Arizona that currently has two posts under it. How can I show all posts under Elgin Arizona?
Here's what I have so far and it throws no errors but also doesn't show anything at all. Just a blank page:
$args = array( 'posts_per_page' => 100, 'post_status' => 'publish', 'tax_query' => array( array( 'taxonomy' => 'wineregion', 'field' => 'id', 'terms' => 75, 'include_children' => false ) ), 'post_type' => 'winemakers' ); $wine_region_location = new WP_Query($args); ?> <?php if ( $wine_region_location->have_posts() ) : ?> <?php while( $wine_region_location->have_posts() ) : $wine_region_location->the_post(); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php endwhile; wp_reset_postdata(); ?>