The solution to this problem turned out to be:
- Changing the name of the custom post type from “events” (with the slug
/events/
) to “event” (with the slug/event/
) - Creating a page with a custom template with the slug
/events/
to display the archives of the custom post type
While this is technically not an answer to the question of why WP refuses to serve and display the archive template for the custom post typer per WP’s own template hierarchy, it solves my problem.
Along the way, I used wp-cli to flush WP’s internal cache and delete all transients, but that didn’t have any effect.
Related Posts:
- Can a custom post type have a Parent Page?
- How do I append multiple taxonomies to the URL?
- Multiple post types – share same ReWrite slug?
- Taxonomy, Terms, and Template Files
- Templates for Custom Post Types and Custom Taxonomies
- Custom Post Type with Nested Taxonomy and Template Files
- Clean URL permalink for custom post type
- Remove POST_TYPE from custom post type permalink
- Programmatically adding posts
- Extend the wp_get_archives output with ‘?post_type=foo’?
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- Permalink structure by Post Meta value
- 2 Templates 1 custom post type according url
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Create a custom php page and load it at a specific slug
- How to include term custom meta into the custom taxonomy term permalink structure
- Custom taxonomy returns 404
- Migrating a taxonomy’s tags to the native category
- Flush Rewrite Rules when new site is created on network
- Template files for Custom Post Type and Taxonomy
- How to Create Template File for Parent Page of Custom Post Type
- make permalink go to a custom single.php file
- How to get the current category with custom posts
- Displaying a list of Contacts
- Custom permalink structure for remote content pages
- Setting a homepage – doesn’t seem to work
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- One Custom Post Type two different Templates
- WP 3.1 custom post type permlinks
- Why did permalinks setting affect the pages?
- Add category slug as class attribute in a link array
- Storing postID in session variable to query database when visitor on custom template page
- Specifying Default Template for Hierarchal Custom Post Type [duplicate]
- How to make a template for a specific post of a custom post type?
- PHP Button Custom link [closed]
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- How do I filter the excerpt metabox description in admin?
- Setting up custom post type archives in WP3.1? Any luck?
- Using Templates with Custom Post Type UI
- Adding meta values to permalink
- Hierachical Custom post types permalinks not working
- TV Show database – Best way for structuring it?
- Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?
- Query posts by custom post type and custom taxonomy
- Custom Taxonomy List links being re-written
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Pagination Issue: Custom Post Type In Index
- Create second custom 404 page for selected post type
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- Sub-Sub-Blogs — creating and importing content into a custom sub-type
- remove permalink “front part” for custom post type
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- How to Mass Delete Images from Media Library
- Permalink for a custom post type isn’t working and I don’t know why
- Add custom post type settings to wordress default posts
- Assign same parrent Page to pages AND custom post types
- Can I override a CPT template on a per post basis with Gutenberg block editor?
- Removing Custom Permalink Structure for Custom Post Type
- Lost of query parameter when using permalink
- Different results between permalink and query var search
- Best structure / rewrite rules to achieve the following url
- Custom post type Permalinks with hierarchical Taxonomies
- 404 Error on form submission within custom post type
- Can’t use pagination with custom taxonomy
- Displaying multiple post types on home page
- Conflict between wp_list_pages and get_posts – list pages not displaying
- How to export custom post type with ACF to individual file with automation?
- Custom Post Types,Permalink and Heirarchy
- Passing variables through permalink structure in custom post types
- Permalinks for single-[custom-post-types] not working
- Permalink Trouble with custom post types
- Require custom post type if is_admin() – template doesn’t show up?
- Custom Post Type – Main page for certain posts
- Shortcode in pages or tempate files for custom post type
- custom posts permalinks url rewriting
- Can I get an auto-populated dropdown list of other custom posts in a custom post edit page?
- How to enable to change Permalinks for Individual Custom Post Type
- WordPress next post by ajax call on button click
- CPT relations use in permalinks under single post type
- custom post template design with dropdown option
- Custom post type single page uses the right template in preview mode but shows a different template after being posted
- Post Attribute Section missing for Custom post type
- Set a Default CPT taxonomy by taxonomy id
- How to assign post to category
- hierarchical Custom post type child permalink not found
- WordPress deletes custom posts instead of trash them
- Creating custom post type relationships
- Include template if a post is a single product
- Show Templates in Custom Post Type Editor
- Custom Post type and Taxonomy in post URL error
- Multiple Custom Post Type permalink issue
- How to avoid hardcoded text in a custom page template?
- Custom Post Types and rewrite rules – One CPT works and a cloned one doesn’t
- What’s the best way to show custom post types? With page template it’s not perfect!
- Listing all custom post types using a specific term on the said term’s template page, in groups
- How can you preserve URLs when moving posts to a custom post type?
- How to add custom column to Custom post page list?
- using a template for more then 1 page
- Why isn’t page attributes dropdown not showing up in a custom post type