See my answer here: https://wordpress.stackexchange.com/a/100486/12324.
The issue you’re facing is that permastructs are adding multiple custom post types to the URL, which is confusing WordPress. You’ll need to add your rewrite rules using add_rewrite_rule()
.
Related Posts:
- Custom rewrite rules for archive page and single post
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Multiple post types – share same ReWrite slug?
- How to modify URL structures in custom post types and taxonomies or terms
- Adding meta values to permalink
- Permalink rewrite with custom post type and custom taxonomy
- Prepend meta_value to permalink of post
- Permalinks for CPT breaks permalinks to pages
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- WordPress Rewrite rule for nested post types
- Custom Permalink Tag breaks Pagination
- Custom Permalink for Taxonimie and Custom Post Type
- Permalink Structure CPT With Custom Taxonomy Fails
- Making a custom help center page
- How to change custom post type permalink structure
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- Customize Custom Post Type URL
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Pretty URLs and custom post types
- Combine multiple CPT names to create valid permalinks
- Set parent for custom post type archive rewrite url
- Route subpage to Custom Post Type
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- WordPress custom permalink and archive link for custom post type
- Rewrite URL for CPT to domain/post-name/post-id
- Custom permalink structure for custom post types including multiple taxonomy
- Two CPT: one is using part of the custom rewrite slug from the other
- WordPress custom post type rewrite rule matches all pages returning 404
- Parent cpt/child custom post type URL permalink relationship
- Custom post type permalink structure
- What is the best way to relate different custom post types?
- Mixing custom post type and taxonomy rewrite structures?
- How to rewrite URI of custom post type?
- Custom post types – Use post_id in permalink structure
- Custom post type 404s with rewriting even after resetting permalinks
- Custom post type permalink: only use %post_id% and remove %postname%
- Rewrite rule for Custom post type Monthly and Yearly archive
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- Rewrite custom post type rss feed links
- Archive page with multiple taxonomies rewrite
- rewrite get parameter with custom post type
- Modify custom post type rewrite rules in a separate function
- Help with a TV series Rewrite structure
- Taxonomy archives based on Custom Post Type
- Slug for custom post type archive
- Change page /2 to /transcript with a Rewrite
- Using %postname% tag with a Custom Permastruct creates 400 Bad Request Errors from the server
- How to rewrite custom post type URL for multiple depths instead of one specific depth
- WordPress rewrite my URL when i use pagination
- Add hierarchical taxonomy to permalink for custom post type
- 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?
- Parent & Child Taxonomy slugs in custom post permalink
- Custom taxonomy in URL showing 404
- Rewrite slug of custom post type to include post-id
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Rewrite Question Mark in Post Template to Make it Pretty URL
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Custom Permalink to remove category word , keeping posts permalink with date?
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Rewrites/query for multiple hierarchical custom post types
- How to get list of taxonomy slugs ordered parents>childs?
- Rewrite Endpoints and CPTs – How to use in a plugin
- Make custom post types and pages place nice, re: rewrite
- add_rewrite_rule and passing variables for custom post types
- Permalink misbehaving in Custom Post Types
- Custom Permalinks for Custom Post Types
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Custom Post Type Advanced Slug
- rewriterule not working
- Pagination for custom post types – url rewriting
- Custom Post Type with modified permalink structure results in 404
- Modifying rewrite rules to use /category//
- Subpages Permalinks Issues
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Adding /blog in front of single posts (only)
- multiple URLS for the same page
- 404 error rewrite permalinks
- Category permalinks don’t work even after flushing
- Custom Post Type parent/child relationship rewrite rules for permalinks
- Rewrite url for custom post type with specific url
- Customise Permalink Structure For Custom Post Types
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Permalinks for a custom post type – with a page template (custom query) and taxonomy archive
- how to use two permalinks for one custom post type based on categories
- page not found for example.com/custom-post-name
- Custom post type with parent page? Possible?
- Why won’t this rewrite rule work?
- Adding rewrite rules to Custom Post-type mixed with Taxonomy
- How to add custom permalink struct with DYNAMIC author to a Custom Post Type
- Custom post type Premalinks main page and details page
- Allow child pages with the same base as the CPT slug