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
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Adding custom post type archives to a WordPress menu
- WordPress 3.3 custom post type with /%postname%/ permastruct?
- Combining Multiple Taxonomies in one URL
- Taxonomy term in permalink
- Why does a custom post type need the ”hierarchical’ args setting?
- Modify custom post type rewrite rules in a separate function
- Custom Post Type archive as front page
- Permalink rewrite with custom post type and custom taxonomy
- Permalinks in Custom Post types
- Custom Post Type with Nested Taxonomy and Template Files
- Disable WordPress Recognizing Path as Attachment
- Adding custom post types to archive.php
- How to make an archive page displaying posts in a date range
- Passing parameters to WordPress static front page
- How can I filter by taxonomy on a custom post type’s page?
- How much control do we have over CPT rewrite slugs? Can I create a “root” page for my CPT with out the page path, and then have paths for other pages?
- Change archive page template using pre_get_post
- Wrong generated page_name/slug on first publish of custom post type
- How do I correct an incorrect permalink?
- Update permalinks when new category added to custom post type taxonomy
- WordPress post_where & posts_join not working only for custom post type
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- custom-taxonomy/post_name instead of the default post_type/post_name
- Custom Permalink to remove category word , keeping posts permalink with date?
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- How to include term custom meta into the custom taxonomy term permalink structure
- Custom Post Fields at the beginning of a Custom Permalink
- Permalink misbehaving in Custom Post Types
- Remove custom permalink structure from custom post type without modifying register_post_type() directly
- Excluding a Custom Post Type with a specific tag using pre_get_posts
- sort CPT on Custom Taxonomy Archive page
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- Which is the neatest way to have homepage articles and a blog?
- CPT archive page – show one post from each taxonomy term
- Subpages Permalinks Issues
- Multiple permalinks for a single post with multiple taxonomies
- Need equivalent of single_term_slug
- Permalink with hierarchy of Custom Post Types
- Rewrite URL for CPT to domain/post-name/post-id
- How do you create pillar content pages?
- Custom permalink structure for custom post types including multiple taxonomy
- Tell wordpress to show a single page instead of an archive page
- Customise Permalink Structure For Custom Post Types
- Some permalinks on Apache/localhost development setup return 404’s when set to anything other than plain permalinks
- Custom post type post_type_link gives “page not found” on any other custom post type
- Two CPT: one is using part of the custom rewrite slug from the other
- how to use two permalinks for one custom post type based on categories
- Can I override the permalink/slug on creation
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- Multiple custom post type and permalink issue
- Permalinks when using Custom Post Type with static page for archive
- How to change permalinks to taxonomy and post type’s posts
- change precedence of permalink for post_types?
- How to make nested custom post type slugs work
- Custom Post Type Permalinks Problem
- Problems with custom post type and hierarchical permalinks
- Get permalink in custom post type loop doesn’t work
- Custom post type Premalinks main page and details page
- Permalinks for Custom Post Types and Taxonomies