Everything you describe is expected behavior based on your post type registration settings. A page isn’t going to load an archive template, I’m not sure why you’d expect it to. Your rewrite argument slug is only for single posts. Setting has_archive
to true
uses the post type slug as archive location, which is ttwi_course
. If you want the archive to be courses
, then set has_archive
to courses
.
Related Posts:
- Finding the CPT archive template source
- Custom Post Type Settings page, choose page to display archive
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Custom Post Type Archives by Date with Custom Permalink
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- WordPress custom post type archive with description
- Custom post type and taxonomy permalinks – Structure
- How do I get the permalink structure to work like this?
- Custom template won’t load for a custom post type (custom permalinks used)
- Custom post type is showing custom home page, not archive page
- Custom post type archive page blank
- Custom post type archive pagination 404
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- My archive-posttype.php template is not loading
- Custom Post Archive is not working
- How to hyperlink content from archive page with custom post-type
- How to integrate single and archive templates for custom post type in any WordPress theme
- Permalink problems with custom post type and custom taxonomy
- Custom Post Type with Configurable Sidebar via ACF
- Custom post type category permalinks and archive pages
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- Is possible register two archive pages for single custom post type?
- Archive page of CPT’s custom Taxonomy
- ACF Pro Accessing fields on a Custom Post Type
- Permalink for custom post type pages not working
- get first limited words from a custom post in the archive page
- Show index and not the archive for “Dog Custom Post” with default slug
- Custom post type archive page not showing on archive-posttype.php
- Custom post type with two templates
- How do I make my archive page look like popular reviewing sites (e.g., Polygon and Gamespot) [closed]
- Display custom post type archive on page.php template
- Multiple archives for cpt, taxonomies, terms
- Making a archive gallery page for a custom post type which already has an archive page
- Custom taxonomy in custom post type archive with pagination
- Permalink of custom post type partly broken
- Custom Post Type Archive Links Not Working
- Have two (permalinks) urls for a same custom post type
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Pagination not working only on Archive-Name.php using new WP_Query
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- Cannot create custom post types with a specific name
- Multiple custom post type and permalink issue
- Same permalink structure for all post types?
- Get Non-Paginated Index of Post in Paginated Query
- why custom post archive gives always no more than 10 posts despite of paging settings?
- the_permalink() leads back to homepage
- Multiple post types or single post type with category taxonomy?
- How to add base permalink to custom posts?
- Custom Post type and Taxonomy in post URL error
- Rewriting archive page slug to be different than custom post type slug
- WordPress Permalink Custom Post type
- Custom post type with parent page? Possible?
- Get full control over custom post type url
- How to switch from custom post type URL to category URL?
- Hierarchical taxonomy in permalink structure
- Is it possible to have public posts in a non-public custom post type?
- How can I add a “fake” parent into the permalink?
- Permalink Rewrite with Archive – Archive gets 404
- Custom Post Type + Category archive
- Custom Post Type with /%shop_name%/gallery/%gallery% permastruct?
- Remove sequential number from permalinks
- Pagination fault in custom post type archive page [duplicate]
- Custom post types archive
- Site loads very slow for archive custom post type page
- How to assign custom post template to its custom taxonomy terms
- Templates list in “Page Attributes” metabox is inaccurate
- Stop Custom post type from being searched via URL
- Multiple Custom Post Type permalink issue
- Custom Post Types and rewrite rules – One CPT works and a cloned one doesn’t
- Permalinks when using Custom Post Type with static page for archive
- Remove the “View” Link in Post edit Admin
- How to change permalinks to taxonomy and post type’s posts
- Custom Post Type Categories Not Maintaining URL structure any more
- Customizing the custom post type permalink
- How to retrieve the permalink for a specific (custom) term?
- CPT archive as home page
- Add category slug as class attribute in a link array
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- change precedence of permalink for post_types?
- Custom post type child page 404
- Single page problem when permalink type changed
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Archive page of filtered posts
- Archive templates based on taxonomies
- Redirect permalinks after creating custom post types
- taxonomy term names in custom post type permalink structure
- Get post id of permalink for a specific custom post type?
- Permalink clashing with Custom Post Type rewrite rule
- Organizing Custom Post Type Archive Template
- How to display the FAQ Archive page in my menu
- Can’t make permalink of CPT work
- Rewrite rules causing hole
- Custom Post Type Permalink
- Issue with permalinks for custom post type
- Adding 2 CPT with multiple custom taxonomies to permalinks
- Custom Post Type permalink not working on new posts
- URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php
- Parent cpt/child custom post type URL permalink relationship
- Custom post type using standard post categories results in 404 when viewing /cpt/category
- Custom post type category page not working