In this case it seems like you’ll want to hook into the WordPress rewrite rules.
{$permastruct}_rewrite_rules doesn’t have a lot of information, but this filter would allow you modify the array of existing rewrite rules to add in your new rewrite rule for series.
For this to work:
http://example.com/series/movie_slug/parrent_series_slug/series_slug
You’ll need to add in movie_slug, parrent_series_slug, and series_slug as vars that WordPress will recognize with the query_vars filter.
Related Posts:
- Two CPT: one is using part of the custom rewrite slug from the other
- 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
- Permalinks so that one custom post type appears to be a child of another, not working
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Permalink rewrite with custom post type and custom taxonomy
- 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
- Custom Post Type Advanced Slug
- 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
- WordPress custom post type rewrite rule matches all pages returning 404
- Parent cpt/child custom post type URL permalink relationship
- How to make nested custom post type slugs work
- Custom post type permalink structure
- Custom post type Premalinks main page and details page
- What is the best way to relate different custom post types?
- Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?
- Custom Post type & Taxonomy URL structure
- Combining Multiple Taxonomies in one URL
- Custom post types – Use post_id in permalink structure when using has_archive => true
- Modify custom post type rewrite rules in a separate function
- 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
- Make permalinks based on an ACF-field
- Custom Permalinks for Custom Post Types and Taxonomies
- Removing parent slug from URL on custom post type
- How to rewrite custom post type URL for multiple depths instead of one specific depth
- Rewrite on custom post type permalink not working?
- Interesting Custom Post Type Slug with Taxonomy and Custom Field
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Add hierarchical taxonomy to permalink for custom post type
- How to Combine Two Custom Post Types into Single Permalink Structure
- How to remove slugs from multiple custom post types
- Custom taxonomy in URL showing 404
- Rewrite slug of custom post type to include post-id
- Rewrite rules for custom posts types
- Front custom edit post page for each post
- 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
- Index page with the same id as the slug
- URL rewrite add author as base
- Including taxonomy term before post type breaks top level pages
- CPT’s with landing page instead of archive – Url Rewrite?
- How to get list of taxonomy slugs ordered parents>childs?
- Rewrite Endpoints and CPTs – How to use in a plugin
- Custom Post Type – Duplicate Page Slugs
- Best way to specify “article type” in URL
- wordpress how to replace url /bar with foo/bar for custom post type
- How to have permalink like domain.com/term/postname?
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- rewriterule not working
- Custom Post Type nest under a normal WordPress Page
- Subpages Permalinks Issues
- Use a different URL path / permalink for CPT
- How to apply multiple rewrite_rule to a single custom post type url?
- CPTs relationship
- Custom Post Type not using correct page template
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Rewrite url for custom post type with specific url
- Customise Permalink Structure For Custom Post Types
- How to make “single post” permalink maintain it’s sub-page structure
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Custom taxonomy archive slug overwrites static page
- how to use two permalinks for one custom post type based on categories
- Can I override the permalink/slug on creation
- Get the custom post type slug but remove the rewrite prefix?
- Get full control over custom post type url
- Remove sequential number from permalinks
- Customizing the custom post type permalink
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- How to add custom permalink struct with DYNAMIC author to a Custom Post Type
- Hide custom post type slug url from search engine [closed]
- How to change permalink structure off default posts and also CPT’s posts