Had similar situation not long ago. Check the answer to my question here. I believe that will solve your problem.
Related Posts:
- Remove date rewrite rule for custom post type archive page
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Archive page with multiple taxonomies rewrite
- Rewrite custom post type url’s adding meta box values
- CPT Archive with core Category
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Archive page for custom post type and custom taxonomy
- Custom archive URL as a subfolder of the custom post type slug
- Rewrite taxonomy permalink appended to CPT archive url
- How to get list of taxonomy slugs ordered parents>childs?
- Rewrite Endpoints and CPTs – How to use in a plugin
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- add_rewrite_rule and passing variables for custom post types
- Pretty URLs and custom post types
- Specific routing for CPT
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Custom post type archive with page as parent url
- Add parent post to Custom Post Type [closed]
- What’s the name of the custom post type yearly archive template?
- Custom Rewrite Rule for Custom Post Type with URL Param
- WordPress custom slug rewrite
- How can I use archive-{post_type}.php theme template?
- Return the name of the post type
- Custom Permalinks for Custom Post Types
- Postname on unique permalink structure appends “-2” for a custom post type. How can I get this to stop happening?
- Combine multiple CPT names to create valid permalinks
- Set parent for custom post type archive rewrite url
- Route subpage to Custom Post Type
- Use the custom post type archive for taxonomies?
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- How to constrain the results to a specific post_type on tag archive page?
- WordPress custom permalink and archive link for custom post type
- How to rewrite the post slug of a custom post type post
- rewriterule not working
- Pagination for custom post types – url rewriting
- Modifying rewrite rules to use /category//
- Add Custom Values to Permalinks Through Custom Fields and Posts
- Why does my URL keep returning 404 error code?
- How to have multiple archive pages?
- Create a Custom Path to Archive
- Rewrite rules for custom post type
- Custom taxonomy and post type rewrite rules
- WordPress sitemap with Custom Post Types
- Pages not appearing?
- Is possible register two archive pages for single custom post type?
- Url Rewriting a dynamic wordpress page with parameters
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- multiple URLS for the same page
- Rewrite URL for CPT to domain/post-name/post-id
- How to apply multiple rewrite_rule to a single custom post type url?
- How to properly set the rewrite rules for this case?
- How to change URL for custom post type archive?
- Custom permalink structure for custom post types including multiple taxonomy
- Custom Post type page content (archive page)
- Group custom post type posts by month
- CPTs relationship
- Creating an archive page or simple template to list all values of a custom field of specific post type listing
- Do not show child pages within a file page
- Change CPT permalink to use the category
- add_rewrite_rule wordpress ignoring url pattern, wp rewrite not working
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Tell wordpress to show a single page instead of an archive page
- Custom Post Type parent/child relationship rewrite rules for permalinks
- Custom Post Type archive page listing a 404 or single post
- Redirect Custom Post Type from Child Taxonomies
- Rewrite url for custom post type with specific url
- Set archive of custom post type like ‘posts’ page in reading settings is set
- Rewrite URL of Specific Post of Custom Type
- The page or ad listing you are trying to reach no longer exists or has expired
- URL Rewrite and Archive Template Files – Post Type vs. Taxonomy
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- Two CPT: one is using part of the custom rewrite slug from the other
- Custom post type rewrite and wp_pagenavi interfering with each other
- Custom taxonomy archive slug overwrites static page
- Want to display my custom date archive to date.php but dont know how
- Show index and not the archive for “Dog Custom Post” with default slug
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- WordPress custom post type rewrite rule matches all pages returning 404
- page not found for example.com/custom-post-name
- Paging not working for hierarchical custom post type
- Rewriting archive page slug to be different than custom post type slug
- redirect old post type url to new structure url
- Site loads very slow for archive custom post type page
- Stop Custom post type from being searched via URL
- Archive page for a custom post type using WPML
- Why won’t this rewrite rule work?
- Rewrite rules causing hole
- Parent cpt/child custom post type URL permalink relationship
- Custom post type category page not working
- paging is not working properly on news archives page [duplicate]
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- How can I set up the URL for a category archive for a custom post type?
- rewrite rules add a folder in the path
- Display results from two Custom Post Types in page template
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Generate daily archive whenever any post type is added
- Custom Taxonomy in Permalink from post type
- Custom post type permalink structure
- Pagination not working for archive
- How to have a dynamic slug and rendering the archive-{post_type}.php?