Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?

A simple method would be to create a archive template file for the location taxonomy, and then include the proper inner-template for each post type.

First, create a PHP file in your theme’s root folder, named taxonomy-location.php. Then, you can use get_post_type() insider this template the include the proper template:

get_template_part( 'templates', get_post_type() . '-content' );

Now, you can create 2 different PHP files named template-content.php and template-location-content.php. Feel free to edit the to suit your styles.

Leave a Comment