As Milo said, there is no general taxonomy archive. But it made sense to have one in my situation. Here is what I did to imitate a general archive:
I created a blank page in WordPress Admin name Harvey County with a harvey-county
slug.
Then I added a page-harvey-county.php
template file to my theme.
I copied the code from my archive.php
.
I tweaked the loop portion to look like this:
<?php
$taxonomy_terms = get_terms( 'gs_business_region_harvey', array(
'hide_empty' => 0,
'fields' => 'ids'
) );
$args = array(
'post_type' => 'gs_business_listings',
'tax_query' => array(
array(
'taxonomy' => 'gs_business_region_harvey',
'terms' => $taxonomy_terms
),
),
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) : ?>
//header code
<?php
// Start the Loop.
$addressWrapper = array();
$addresses = array();
while ( $query->have_posts() ) : $query->the_post();
//Call get_template_part and such.
endwhile;
endif; ?>
This works, but bothers me a little as it’s not very DRY, copying archive.php
.