title: Custom Post Type categories page/template
body: <p>I have created a Custom Post Type that has a series of different categories that need their own landing page. Right now I have gone through <a href="https://codex.wordpress.org/Post_Type_Templates" rel="nofollow noreferrer">WP Post Type Templates</a> but I still cannot get the category page to show up. Right now the CPT category pages just 404.</p>
  
  <p>I have tried to do the following:</p>
  
  <ol>
  <li>Register post type archives based off <a href="http://xplus3.net/2010/08/08/archives-for-custom-post-types-in-wordpress/" rel="nofollow noreferrer">this</a>.</li>
  <li>Create archive template files using <strong>archive-teams.php</strong> and <strong>archive-team.php</strong>.</li>
  <li>Tried using <strong>category-teams.php</strong> and <strong>category-team.php</strong>.</li>
  <li>Flushed permalinks 1 Million times.</li>
  </ol>
  
  <p>Here is how I am registering the post type and taxonomy:</p>
  
  <pre><code>add_action('init', 'create_team');
  function create_team() {
  
    register_taxonomy(
      'teams',
      array(),
      array(
        'hierarchical' =&gt; true,
        'labels' =&gt; array
        (
          'name' =&gt; _x('Teams', 'taxonomy general name'),
          'singular_name' =&gt; _x('Team', 'taxonomy singular name')
        ),
        'show_ui' =&gt; true,
        'show_admin_column' =&gt; true,
        'query_var' =&gt; 'team',
        'rewrite' =&gt; array(
            'slug' =&gt; 'our-team',
        ),
      )
    );
  
    register_post_type(
      'team',
      array(
        'labels' =&gt; array
        (
          'name' =&gt; _x('Team Members', 'post type general name'),
          'singular_name' =&gt; _x('Team Member', 'post type singular name')
        ),
        'supports' =&gt; array('title', 'editor', 'thumbnail'),
        'public' =&gt; true,
        'rewrite' =&gt; array
        (
          'slug' =&gt; 'our-team/%teams%',
          'with_front' =&gt; false
        ),
        'query_var' =&gt; 'team',
        'has_archive' =&gt; 'team',
        'taxonomies' =&gt; array( 'teams','category','post_tag' ),
      )
    );
  }
  </code></pre>