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 custom post type slug for an archive page
- Custom post types – Use post_id in permalink structure when using has_archive => true
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- How to add meta box to backend menu page
- Custom Posts Types using Posts Category
- Change title in head on Archive page
- How to get a list of term names of the custom post type im currently on in single.php
- Custom Permalinks for Custom post Type Archives?
- is_singular won’t call my functions?
- Pages, Custom Posts & Custom Taxonomy defining slug structure
- How to show a tag archive of one post type only
- Custom taxonomy archive page not working
- Categories or Custom Post Type to Organize Content
- wrong template for page of archive
- Custom edit post column – category not showing
- How to show multiple post types on taxonomy archive?
- Custom post type taxonomy template
- Page naming when there is a sub-category only sometimes.
- CPT: archive-cpt.php VS custom page template
- Get a permalink structure of /%posttype%/%category%/%postname%
- Display custom post type taxonomies as an archive page
- Change name of custom post type archive
- Editable content on a Custom Archive page
- Pagination on category page with custom post types
- Call custom post type by category
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- get the custom post type title/name
- Show custom post type filtered by category
- Filtering WP_Query
- Custom post type – get_day_link()
- Filter CPT posts by one or more categories
- WP Query with categories only shows one post and ignores the category
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Hierarchy and access control for Custom Post Types (CPT)
- Loop filtering Custom Post Types and/or Categories
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- How can I show 1 featured post in a styled element, and the next few below differently styled
- How can I list Custom Post Types created with the Types plugin under categories?
- Categories and tags for custom post types
- how to remove pages loading with the archive templates
- How to add current custom taxonomy slug to body class
- Meta data (Tags and Categories) for Custom Posts not showing.
- Custom post types with categories in template
- The Difference Between Categories and Tags and Taxonomies and Terms
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Default Category Page not showing custom post type which has taxonomy category
- Custom Post Type posts not showing in category
- Post Query not working
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- How can I relate custom post types?
- Category Name with Custom Post Type
- CPT archive page – show one post from each taxonomy term
- Event Archive by Month
- how to organize my categories or should I do custom post types for some?
- Order Categories by Hierarchy?
- Multiple categories assigned to a single product breaking the breadcrumb
- How to divide Subcategories into pages of parent category wordpress
- How to achieve a multi-taxomony layout with posts?
- Custom front-end form for adding post – Category problem
- Control over custom post types on a specific page
- create a “add icon” field in taxonomies page
- Tell wordpress to show a single page instead of an archive page
- Get meta values from parent post and save in child post
- Use Category for Custom Post Type – But Need Another Separate Archive Page too
- Only show current category post
- how to use two permalinks for one custom post type based on categories
- Rewriting archive page slug to be different than custom post type slug
- Custom Catagory not found
- Page to show custom posts and one category
- How can I list custom post by custom category?
- how to show perticular category posts in custome page
- Use only selected regular categories for a Custom post form
- Bulk remove category from custom post type?
- Problem with menu categories doubling up when updating database?
- Can WordPress show posts based on a button that the user clicked 2 pages back?