I got it by searching some more on google.
'has_archive' => true,
This line is vital.
Found out I had to rename my custom template pages to archive-“the custom type name” which in this case was.
archive-case.php
Because of this I could remove my “static” page called case and let the system pick the right template page for the custom post type.
Related Posts:
- Get term name and term parent into custom post type permalink
- Change permalinks for posts but not for custom post types
- Custom Post Type Permalink Page Not Found
- Why is get_post_format() for “Standard” returns empty
- Password-protect a custom rss feed
- single-type.php not working, delivering 404
- Is it possible to place custom post type files inside a folder in theme directory?
- How to have this permalink structure: post_type/postname/custom_inner_page
- Specify a particular page to list all custom types
- How to have permalink like domain.com/term/postname?
- Custom post type permalink sends to 404.php
- Template Hierarchy for custom post type pages
- Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?
- Methods for development wordpress themes [closed]
- Error 404 change permalink term custom term taxonomy
- Links Image in “Catalog” Page to Posts
- erase post excerpt limitation [×]
- Query custom post type and showing its content
- Create custom post order (with custom post type meta)
- Change position of Post Formats box?
- How to manage wordpress knowledge base/wiki/posts collections
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- Custom Post Type Archive template not being called
- Custom Post Type with Configurable Sidebar via ACF
- Custom Post Types,Permalink and Heirarchy
- Pagination of custom post type leads to 404 error
- Having Issue on Getting Metabox Checkbox Value
- Searching post types
- Custom Post Type with modified permalink structure results in 404
- Custom permalink structure for remote content pages
- Custom Post Type Pretty Structure
- Custom meta box in custom post type not working
- Enabling permalinks disables custom page template
- WordPress Custom URLs
- Add admin script to several post types
- Which is the neatest way to have homepage articles and a blog?
- Setting a homepage – doesn’t seem to work
- CPT, meta-data, url parameter
- Need to return a string as permalink insted of str_replace
- Change permalinks for custom post type based on taxonomy term
- How to setup a permalink structure for a custom post type
- Improve Custom Post Permalink Structure
- Under What Conditions Can I name my CPT the same as my CPT Page?
- Passing variables through permalink structure in custom post types
- Using page title as a link to term archive
- Adding an extra parameter [string] to my posts’ permalink?
- Custom post type 404 error on “default” or “numeric” permalinks
- Query Custom Posts – Add To Selection
- Why does my URL keep returning 404 error code?
- add_query_arg() for custom post type on all visible links
- How to remove permalinks links presents in each page of my site?
- Custom Post Type nest under a normal WordPress Page
- How to setup different permlalinks for posts and pages?
- Permalinks for single-[custom-post-types] not working
- Custom post type category permalinks and archive pages
- Custom rewrite rules for /pastissues/%category%-%postname%.html
- Permalink Trouble with custom post types
- Add unique ID number to end of permalink
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- Subpages Permalinks Issues
- Permalinks not working (404) for the ‘item’ post type
- Wp PageNavi only works with default permalinks on a custom post type?
- Custom category URL not displaying posts
- Safe to throw 404 error in request filter?
- Multiple permalinks for a single post with multiple taxonomies
- Custom post type permalink structure to include the taxonomy
- display two images in theme header.php file
- Custom Post Type permalink doesn’t match post permalink
- Custom post type posts wont show in wp_nav_menu()
- WordPress custom posts and permalinks
- Change permalink for custom post type?
- One Custom Post Type two different Templates
- Custom post type, permalink, add query variables problem
- How to exclude categories from a sidebar with active widgets in it?
- How can I tell if I’m on a custom post type archive page?
- How to use taxonomy term as permalink folder
- How does one go about converting custom post type to post format?
- How to display magic field’s custom write panel in wordpress theme?
- Creating an option for writing a post without an author attribution for a group blog on WordPress
- WP 3.1 custom post type permlinks
- Custom Post Type Child Won’t Come Through With Pretty Permalinks
- custom posts permalinks url rewriting
- Front end create custom post types
- Use a different URL path / permalink for CPT
- WordPress giving me the index
- Not Able to Add New Class To CPT Attachment Image
- Stop displaying Permalink
- How to Enable Ascending or Descending In WordPress Default Built-in Loop
- Adding /blog in front of single posts (only)
- Disable permalinks, but allow RSS feeds
- How to remove /blog/ prefix for custom post types in permalinks?
- Duplicate slug/permalink issue while adding same post name
- CPT permalinks Rewrite
- Permalink with hierarchy of Custom Post Types
- Custom post category name showing empty
- How to store the third party script with HTML code in the wordpress custom input field?
- Getting Same Description in All the Custom Taxonomy Posts
- How to display posts from a certain category in a bootstrap 5 carousel loop with multiple items?