title: custom post type archive page/template
body: <p>I have looking for this issue for 2 days and now decide to put my question here so that i can have proper solution or guidance. I have gone through similar questions on <code>stackoverflow</code> but some have solution that did not work for me.. and some yet have not proper answer.</p>
  
  <p>Please go through my code and tell me if there is any mistake I am doing..</p>
  
  <p>I have custom post type of <code>infographics</code> and have added a <code>taxonomy</code> <code>infograph_category</code> to it. code is below.</p>
  
  <pre><code>// For Infograph Custom Post Type
  function mtc_custom_post_type_infographs() {
  /**
   * Post Type: Infographs.
   */
  $labels = array(
      "name" =&gt; __( "Infographs", "" ),
      "singular_name" =&gt; __( "Infograph", "" ),
  );
  
  $args = array(
      "label" =&gt; __( "Infographs", "" ),
      "labels" =&gt; $labels,
      "description" =&gt; "All the infographic content will be posted with this type of post",
      "public" =&gt; true,
      "publicly_queryable" =&gt; true,
      "show_ui" =&gt; true,
      "show_in_rest" =&gt; false,
      "rest_base" =&gt; "",
      "has_archive" =&gt; false,
      "show_in_menu" =&gt; true,
      "show_in_nav_menus" =&gt; true,
      "exclude_from_search" =&gt; false,
      "capability_type" =&gt; "post",
      "map_meta_cap" =&gt; true,
      "hierarchical" =&gt; false,
      "rewrite" =&gt; array( "slug" =&gt; "infographics", "with_front" =&gt; true ),
      "query_var" =&gt; true,
      "supports" =&gt; array( "title", "editor", "thumbnail", "excerpt" ),
      "taxonomies" =&gt; array( "infograph_category" ),
  );
  
  register_post_type( "infographics", $args );
  }
  
  add_action( 'init', 'mtc_custom_post_type_infographs' );
  
  function mtc_infograph_categories() {
  /**
   * Taxonomy: infograph categories.
   */
  $labels = array(
      "name" =&gt; __( "infograph categories", "" ),
      "singular_name" =&gt; __( "infograph_category", "" ),
      "all_items" =&gt; __( "All Infograph Categories", "" ),
      "edit_item" =&gt; __( "Edit infograph category", "" ),
      "view_item" =&gt; __( "View infograph category", "" ),
      "update_item" =&gt; __( "Update infograph category", "" ),
      "add_new_item" =&gt; __( "Add infograph category", "" ),
      "new_item_name" =&gt; __( "New infograph category", "" ),
      "parent_item" =&gt; __( "Parent infograph category", "" ),
      "parent_item_colon" =&gt; __( "Parent infograph category", "" ),
      "search_items" =&gt; __( "Search infograph categories", "" ),
      "popular_items" =&gt; __( "Popular infograph categories", "" ),
      "add_or_remove_items" =&gt; __( "Add or remove infograph categories", "" ),
      "not_found" =&gt; __( "No infograph category found", "" ),
      "no_terms" =&gt; __( "No infograph categories", "" ),
  );
  
  $args = array(
      "label" =&gt; __( "infograph categories", "" ),
      "labels" =&gt; $labels,
      "public" =&gt; true,
      "hierarchical" =&gt; false,
      "label" =&gt; "infograph categories",
      "show_ui" =&gt; true,
      "show_in_menu" =&gt; true,
      "show_in_nav_menus" =&gt; true,
      "query_var" =&gt; true,
      "rewrite" =&gt; array( 'slug' =&gt; 'infograph_category', 'with_front' =&gt; true, ),
      "show_admin_column" =&gt; false,
      "show_in_rest" =&gt; false,
      "rest_base" =&gt; "infograph_category",
      "show_in_quick_edit" =&gt; false,
  );
  register_taxonomy( "infograph_category", array( "infographics" ), $args );
  }
  
  add_action( 'init', 'mtc_infograph_categories' );
  </code></pre>
  
  <p>Note: This code is actually generated by CPT plugin</p>
  
  <p>I have created templates for single and category pages like, for single its <code>single-infographics.php</code> and for category its <code>taxonomy-infograph_category.php</code> and both templates are working fine. But now I want to create a template in which all the post from custom post type <code>infographs</code> should shown in there. 
  I tried creating some templates like 
  <code>archive-infographs.php</code>
  <code>taxonomy-infographs.php</code>
  <code>taxonomy-infograph_categories.php</code>
  <code>archive-infograph_categories.php</code></p>
  
  <p>but nothing works.</p>
  
  <p>I just need a guidance where I am wrong are what is wrong with this code.
  Please do not discourage this post, as I have already mentioned that I have gone through lots of questions and googled alot.. but after I failed to get any proper solution for my problem I am posting this is here! Hope you understand and I will get proper guidance/solution!</p>
  
  <p>Thanks</p>