Custom taxonomy and custom post type – wrong permalinks and template

Custom taxonomy and custom post type – wrong permalinks and template