You can set any arbitrary path in the rewrite
slug
and has_archive
arguments:
$args = array(
'rewrite' => array('slug' => 'people/researchers'),
'has_archive' => 'people/researchers',
// other args...
);
EDIT
Your post type slug is researchers
, so WordPress will be looking for the file archive-researchers.php
by default. If you want to force a different template, you can use the archive_template
filter:
function wpd_researchers_archive_template( $archive_template ){
if( is_post_type_archive( 'researchers' ) ){
$archive_template = locate_template( 'archive-people.php' );
}
return $archive_template;
}
add_filter( 'archive_template', 'wpd_researchers_archive_template' );
Related Posts:
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- Page is defaulting to archive page and not designated template
- Custom Post Type Archive URL takes over page URL
- where can I see my custom post type archive template?
- Include different loop templates in search query
- How to show the archive / post type description on Single templates
- Custom template page with custom archives listing by user
- How to modify archive query with pre_get_posts to append CPTs?
- Create template for taxonomy results limited by Custom Post Type
- How can I get this request to use the Custom Post Type page template instead?
- Custom post type posts don’t show in archive widget
- Archive for a Taxonomy of a Custom Post type
- how to remove pages loading with the archive templates
- How can I use archive-{post_type}.php theme template?
- Archive Template being used instead of Category Template for Custom Post Type
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Turning archive templates to a page template maintaining the slug
- Custom Post Type tag taxonomy “Page Not Found”
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- how to pass args for archive.php query?
- Content vs Template on custom post
- Custom post type archive page blank
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- How to use custom template files in deeper directory?
- WordPress Doesn’t Generate Taxonomy Archive
- A case for Hierarchical Custom Posts
- Custom archive page for CPT UI
- Display post content with respect to its title?
- How to display custom post in archive section of the wordpress page?
- Custom taxonomy returns 404
- First custom field value (out of several) displayed twice after query
- The loop seems stuck to a single (now deleted) post
- Prioritize posts in query by meta keys?
- Filter widget outputs
- Adding Page Templates to post but it ignored it
- What’s the equivalent of Hide From Menus on MODX on WordPress?
- Use “archive” as slug for custom post type
- Template for all categories of a custom post type?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- WP_Query orderby and tax_query
- Archive for CPT
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Displaying Posts from Custom Post Types
- Different Ways to Query Custom Post Types?
- Is it better to use filter for the_content in archive pages?
- Migrating a taxonomy’s tags to the native category
- Flush Rewrite Rules when new site is created on network
- How to organise this data within WordPress
- WordPress custom taxonomy template not working
- How to specify a template for a path like http://example.com/something?
- Custom templates for a specific category
- Showing specific post in order of array wp_query
- Custom post type pages return 404 page?
- WordPress 3.9 not using custom template
- Archive not sorting correctly
- Template files for Custom Post Type and Taxonomy
- Set templates for custom post types
- How to Create Template File for Parent Page of Custom Post Type
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Number of posts in the archive
- Custom post_type search pages
- Query of custom post types only shows first post
- Custom query for custom post_type
- Adding custom field values to wp_list_pages
- Query multiple taxonomies with pre get posts
- What’s the name of the custom post type yearly archive template?
- How to query 2 custom post types that need to share a slug?
- Archieve.php not loading for custom post type
- multiple custom post type on category page
- Custom Post type & Taxonomy 404
- Main query not querying any posts in custom taxonomy template
- Custom Empty Results page for my Custom Post Type
- Custom posts template page
- Loop through custom posts by taxonomy and display the titles in a list, it is repeating 8 times
- Query Custom Post Types with checkboxes
- WP_Query() with custom post type and taxonomy — get all terms?
- show all custom posts types in home page
- Taxonomy archive 404ing (not term archive)
- Return the name of the post type
- List of child custom post types lists all custom post types
- make permalink go to a custom single.php file
- Add Previous/Next Buttons to CPT Single Pages Only
- Assign CPT archive page attributes
- Query custom post type based on post id and custom field value
- Creating Sections for Post Types
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- Listing custom post types on archive page with array
- Custom post types with categories in template
- Custom taxonomy or custom page templates?
- Make (custom) post type accessible only by custom query
- Dynamically insert an article at the top of a taxonomy archive – or?
- Archiving custom post content?
- archive as a page, so that it can be added in the wp_menu_nav
- Creating separate feeds for custom post types
- Can I query posts by taxonomy conditionally based on post type?
- Can anyone clarify difference between archive-{posttype}.php, type-{posttype} and date.php?
- Which file/template is in charge of taxonomies for custom post types?
- How to conditionally add Custom Post Type to Front Page
- How can I trace inconsistency in loading a template?
- Graphql: Unable to query (where:{author}) for custom post type