Sorry I was using wrong structure, after looking through a bit more i found out exact difference for CPT and cutom taxonomies.
For custom post types the template structure is like:-\
single-{post-type}.php
archive-{post-type}.php
search.php
index.php
And for Custom taxonomies, the template structure I found out from here:-
Related Posts:
- Taxonomy, Terms, and Template Files
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Templates for Custom Post Types and Custom Taxonomies
- Get page by template?
- Custom taxonomy query for a custom post type
- Need some templating advice for templating with custom post types and taxonomies
- Custom Post Type with Nested Taxonomy and Template Files
- Custom Post Type Archive Template
- custom post type archive template per custom taxonomy term
- custom taxonomy – Template not working
- Include different loop templates in search query
- Create separate template for shared custom taxonomy with shared terms
- Trying to manage templates on a blog with lots of custom taxonomies
- How do I provide a “show all posts” link in a paginated term archive?
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Query with no terms uses index.php template instead of archive.php
- Create template for taxonomy results limited by Custom Post Type
- Template for custom post with custom taxonomy
- Custom taxonomy and custom post type – wrong permalinks and template
- WordPress Doesn’t Generate Taxonomy Archive
- Custom taxonomy returns 404
- Template for all categories of a custom post type?
- Migrating a taxonomy’s tags to the native category
- WordPress custom taxonomy template not working
- How can I get this request to use the Custom Post Type page template instead?
- Archive for a Taxonomy of a Custom Post type
- Template files for Custom Post Type and Taxonomy
- Main query not querying any posts in custom taxonomy template
- Loop through custom posts by taxonomy and display the titles in a list, it is repeating 8 times
- Which file/template is in charge of taxonomies for custom post types?
- How to get_term_meta on single custom post?
- Get template part with CPT and Custom Taxonomy conditionals
- How to create a template to show child terms of a MAIN taxonomy
- How to change single custom post template by custom taxonomy?
- Create a custom taxonomy template that loops through child categories in term order?
- Post template with breadcrumb needs to show page navigated from
- Custom Post Taxonomy Template Not Loading Properly
- taxonomy – templates are not loading
- Custom taxonomy with custom post type template not showing
- Custom taxonomy template for custom fields loop [closed]
- Templates for CPT not working
- Single taxonomy for different custom post types
- How should i name the .php file to show custom posts under a taxonomy’s term?
- I want to create an archive and single page for a custom taxonomy for a custom post type
- Custom Post Type tag taxonomy “Page Not Found”
- WordPress Custom taxonomy template
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- Only One Post of Custom Post Type Appearing on Template Page
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- Loading custom page template via plugin
- Custom Taxonomy with Custom Post Type Finds No Posts
- Create permalink structure for one taxonomy archive per custom post type
- Apply template to custom post type
- WordPress category, category post and single post
- Copy one CPT to another one in WordPress
- What’s the purpose of ‘taxonomies’ parameter in register_post_type()?
- Custom Taxonomy not showing as option on custom post page
- how to get archive urls with same origin for custom types and terms?
- Custom Query to display posts with custom field
- Get taxonomy description based on variable
- Displaying Metabox value (custom post type taxonomy)
- Pretty URLs for Custom Post Type & Custom Taxonomy with Duplicate Slugs on WPML
- Filter by custom taxonomy slug on a custom post type
- Create 3 Level Relations with ACF and WordPress
- Archive page for taxonomy terms
- Add custom taxonomy to post content body?
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- Custom post type and taxonomy permalinks
- Exclude custom taxonomy term posts from custom post loop
- Create a permalink structure with custom taxonomies and custom post types gives 404
- Not Able To Render Single-CustomPostType.php File
- Using page slug in wp_query
- Custom taxonomy (categories) on custom post type return no results
- Remove taxonomies using register_post_type_args
- Different options per post type in WP_Query
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Is there a way to make child posts inherit parent post terms?
- Custom post types category
- Query Custom Post by taxonomy multiple categories
- Advanced archive url structure (category, tag and date)
- Setup page template array in a custom post type
- Custom taxonomy terms as children of multiple custom post types
- Custom Taxonomy and Categories
- custom taxonomy pagination 404 error
- Filter in Custom post type to find the parent post
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Listing all custom posts having a specific taxonomy whatever the terms
- Create a Hierarchical List of Custom Taxonomies AND Posts
- Taxonomy template file not working with a taxonomy that contains a slash
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Custom Taxonomy page redirecting to 404 page
- Filter a custom taxonomy from displaying a button all other taxonomies can show
- Problem with type plugin and custom taxonomies
- Get posts associated with custom taxonomy alternate way
- Exclude Custom Post Type from shared Custom Taxonomy
- PHP Button Custom link [closed]
- Automatically add custom taxonomy when meta value gets to a set number or beyond