A shared custom taxonomy between two custom post types
You use get_query_var(‘post_type’) to set the post type in your args array $args[‘post_type’] = get_query_var(‘post_type’); and also include the right loop part based on that for example: if (get_query_var(‘post_type’) == “event”){ get_template_part( ‘loop’, ‘event’ ); }else{ get_template_part( ‘loop’, ‘other’ ); }