Did you go to Admin -> Settings -> Permalinks after setting up the post type? The permalink structure hasn’t been added until you’ve done that. It could be the cause of your problem.
The permalinks page fires $wp_rewrite->flush_rules();
each time the page is visited, so it’s not even necessary to save.
Related Posts:
- Change permalinks for posts but not for custom post types
- Custom Post Type Permalink Page Not Found
- Get term name and term parent into custom post type permalink
- How to have this permalink structure: post_type/postname/custom_inner_page
- Custom post type permalink sends to 404.php
- Custom Post Type – Main page for certain posts
- Error 404 change permalink term custom term taxonomy
- Links Image in “Catalog” Page to Posts
- Mixing custom post type and taxonomy rewrite structures?
- Resolve a custom post type name vs. page permalink conflict (same slug)
- How to rewrite URI of custom post type?
- How to change permalink structure for custom post type and it’s taxonomies?
- Custom post types – Use post_id in permalink structure
- Custom post type permalink: only use %post_id% and remove %postname%
- Assign single template to multiple custom post types?
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- Rewrite custom post type rss feed links
- 404 on child page when parent page slug is identical to custom post type
- How to build a complex page structure
- rewrite get parameter with custom post type
- How can I fix those issues generated by the Themecheck plugin
- Why is get_post_format() for “Standard” returns empty
- Password-protect a custom rss feed
- Remove unwanted part of permalink custom structure from CPT url?
- Rename a current used post type
- Changing a custom post type “has_archive” after registered
- How does one flush rules on theme activation or deactivation only?
- Page to display an archive of taxonomies
- How to create a permalink for custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- How to show custom taxonomy in the permalink?
- Date-based permalinks for Custom Post Type, and custom taxonomy permalinks
- WordPress rewrite my URL when i use pagination
- Permalinks for custom post-types within custom taxonomies not found
- After updating a page, all pages on the site used the index.php template
- Parent & Child Taxonomy slugs in custom post permalink
- Custom Post Types and independent Categories – complex Taxonomy
- Easy way to change custom post type name for permalinks?
- Use menus with anchors
- Permalink structure by Post Meta value
- custom post type parsed as attachment
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- WordPress Custom Post Type Permalinks dynamic term slugs
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- Create a custom php page and load it at a specific slug
- Permalinks /country/city/cpt/postname/
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- How to change permalink to include custom post type
- Make custom post types and pages place nice, re: rewrite
- set permalink for CPT
- Two column layout with alphabetical ordering
- Permalink problems with custom post type and custom taxonomy
- Route subpage to Custom Post Type
- Custom Post Type “MUST NOT” be able to search via URL
- Custom meta box in custom post type not working
- Under What Conditions Can I name my CPT the same as my CPT Page?
- Custom post type category permalinks and archive pages
- One Custom Post Type two different Templates
- How can I tell if I’m on a custom post type archive page?
- How to Enable Ascending or Descending In WordPress Default Built-in Loop
- Adding /blog in front of single posts (only)
- How to remove /blog/ prefix for custom post types in permalinks?
- How to display posts from a certain category in a bootstrap 5 carousel loop with multiple items?
- How to get the custom post data using post id in WordPress?
- Loop all post on single.php
- Searching in multiple category + URL hierarchy in real estate WordPress site
- Custom post ID & display information related to this ID
- Custom post type 404 category page
- Edit the default ‘post’ custom post type arguments
- add all blog posts to folder
- Category permalinks don’t work even after flushing
- programmatically generated custom post type is created more than once
- Custom Taxonomy Archive generates 404
- Enabling hierarchical in a Custom Post Type gives error 404
- Standard Page Child of CPT Not Found (404)
- Custom permalink rewrite rules – how do I fix this?
- call a function when insert and update a custom post type
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- How to retrieve custom post type permalink in another cpt?
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Post Custom & Taxonomy 404 error
- How To Display Category list from Portfolio post type plugin?
- Same permalink structure for all post types?
- the_permalink() leads back to homepage
- Custom post type with parent page? Possible?
- Search form to find custom meta box generated data
- Can’t make permalink of CPT work
- Issue with permalinks for custom post type
- Why is my custom form saving with ‘autodraft’ as title and slug?
- Cross post type parent page added parent page to permalink but give 404
- Category / Custom Post Type permalink issue
- Adding rewrite rules to Custom Post-type mixed with Taxonomy
- “regular” pages not found after changing permalink
- Custom Post Type and Taxonomy pagination permalink
- permalink structure for single-{post-type}.php in wordpress
- Linking from a list of custom post type items to a single – get_post_permalink not working correctly
- Custom post type permalink structure
- How do I use CPT and permalinks with a mobile theme?
- Can I have a specific template for products even if they are standard posts and not CPT?
- How to add custom permalink struct with DYNAMIC author to a Custom Post Type
- Permalinks for Custom Post Types and Taxonomies