You can force use of your template for categories with the category_template filter:
function wpa57439_category_template( $templates="" ){
if( !is_array( $templates ) && !empty( $templates ) ) {
$templates = locate_template( array( 'archive-actors.php', $templates ), false );
}
elseif( empty( $templates ) ) {
$templates = locate_template( 'archive-actors.php', false );
}
else {
$new_template = locate_template( array( 'archive-actors.php' ) );
if( !empty( $new_template ) ) array_unshift( $templates, $new_template );
}
return $templates;
}
add_filter( 'category_template', 'wpa57439_category_template' );
adapted from Filter Hierarchy in codex.
Related Posts:
- Filtering a custom post type by custom taxonomy in archive template
- Why are posts from custom post type not displayed in “category” archive?
- Regex problem in an add_rewrite_rule
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Category page only displaying the posts from a custom type
- custom taxonomy archive by year
- CPT Archive with core Category
- Custom Post Type Archive Page Filtering
- Archieve.php not loading for custom post type
- multiple custom post type on category page
- Archive Template being used instead of Category Template for Custom Post Type
- Menu’s breaking, now showing all page links on site
- Advanced archive url structure (category, tag and date)
- Display all Categories except ones with a specific parent
- Custom WordPress theme not displaying posts from category
- Adding Custom Post Types to category/tag/author archives breaks header content
- Custom category taxonomy – archive page not showing up
- How can I generate a list of post-type specific categories?
- Custom Post type archives / categories give 404
- archive.php can’t find categorized posts
- How can I set up the URL for a category archive for a custom post type?
- Categories in custom post types
- Stop header code from showing in category page?
- Get the first post term
- Adding content to archive and taxonomy pages on custom post types?
- Add Category Taxonomy Support to Custom Post Type
- How to build a complex page structure
- Proper way of making custom post type landing page or archive page
- Hide/Show only specific categories in wp-admin new-post.php
- Custom Post Type Archives with 0 Posts Redirects as 404
- Archive page with multiple taxonomies rewrite
- Archive page…limiting posts per page
- Date archives for custom post type
- Custom comment status possible?
- Get categories for a specific post – Custom post type
- Include custom post types in categories widget
- How to get dynamically custom post type that are under a certain category
- Custom Post Type, Two categories, Two columns with Pagination
- New WP_query in template not working with CPT+category on some pages
- Call different archive page based on post type
- Taxonomy list. Order by a specific custom post type count
- Custom/separate categories for custom post type
- Categories not working as expected with custom post type
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Get categories and descriptions from custom post type
- How to create new category for custom post type?
- How to show CPTs in term archive
- Group posts by custom post type
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Categories of custom taxonomy don’t show any posts
- Can’t remove front from permalinks for custom taxonomy category page
- Adding custom post type to count in category
- Pre-selecting the category for a custom post type
- Use “archive” as slug for custom post type
- WP the_posts() on single-cars.php get category link
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- How can I have different content for different countries?
- Return the name of the post type
- Invalid Taxonomy
- archive as a page, so that it can be added in the wp_menu_nav
- Displaying Custom Posts
- How to include category name/id in wp_query for retrieving “custom post type” from a particular category?
- Include custom post type custom taxonomies in Categories widget
- custom query with custom post type and category slug
- WordPress custom post categories and subcategories on category.php
- Dynamic category name in query post
- Custom Post Type Archive Pagination
- Use post in multiple places on a page with multiple posts
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- Custom post type specific category box
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- How can I increase the post count for custom post types only?
- category.php not showing custom post types
- Is possible register two archive pages for single custom post type?
- Post category behave like a Post in back office menu
- Save data is post using php front end
- Custom Post Type Archive Page showing as 404
- Modify category permalink to use post type slug
- How to output custom post type title on custom page with category next to it?
- Create custom post type categories
- Set a Default CPT taxonomy by taxonomy id
- Automatic Set Category For A Custom Post Type
- how to create custom taxonomy drop downs for parents and child
- Only show categories that have posts within custom post type
- How to create groups like that in buddypress?
- Getting list of Categories for Custom Post Types
- can’t see categories in appearance-menu-categories
- Stop Custom post type from being searched via URL
- Exclude categories For Custom post types
- archive-{custom_post_type}.php not getting recognized wordpress
- I have a custom post type that I want to query a dynamic category name from a custom meta field
- Display all post types together
- Trying to create hierarchy between 3-4 custom post types
- Display results from two Custom Post Types in page template
- Pagination not working for archive
- Are custom posts included when getting a categories’ posts?
- Custom Post Types Permalink
- How to add categories to a custom post type using wp_insert_post($new_post);
- Why using archive pages at all?