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?
- How can I make the slug of the taxonomy also the slug of the custom post
- Assign same parrent Page to pages AND custom post types
- WordPress custom post type permalink rewrite shows page not found
- Using taxonomy term in CPT permalink – Pages 404’s
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- Custom post type as home page with custom url
- Programmatically rewriting slug through functions.php but returns 404
- Create a custom php page and load it at a specific slug
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- URL rewrite add author as base
- Custom Permalink to remove category word , keeping posts permalink with date?
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Rewrites/query for multiple hierarchical custom post types
- cpt and page sharing same base permalink
- Hide or disallow default custom post type url?
- Post Type rewrite rule to point to custom Page/template
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Custom taxonomy returns 404
- 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?
- Custom post type permalink returns 404
- 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
- Flush Rewrite Rules when new site is created on network
- Specific routing for CPT
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Lost of query parameter when using permalink
- Custom Post Type – Duplicate Page Slugs
- Rewrite rule for Custom post type Monthly and Yearly archive
- Custom permalink with child taxonomy terms
- Add a permalink variable onto custom post type URL after post name slug
- Remove permalink for custom post type
- Permalink misbehaving in Custom Post Types
- Best way to specify “article type” in URL
- How do you create %post_type%/%postname%/ permalink structure?
- How to query 2 custom post types that need to share a slug?
- Custom Rewrite Rule for Custom Post Type with URL Param
- WordPress custom slug rewrite
- wordpress how to replace url /bar with foo/bar for custom post type
- How to have permalink like domain.com/term/postname?
- 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?
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- WordPress Custom Post Type – Rewrite Query
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Dynamic CPT permalink structure based on ACF field value
- Post type Permalink
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Custom Post Type to replace Woocommerce products – page not found error
- How to rewrite the post slug of a custom post type post
- rewriterule not working
- Custom Post Types and Removing Slugs – should we do it?
- Pagination for custom post types – url rewriting
- Custom Post Type with modified permalink structure results in 404
- Modifying rewrite rules to use /category//
- Add Custom Values to Permalinks Through Custom Fields and Posts
- Need to return a string as permalink insted of str_replace
- Under What Conditions Can I name my CPT the same as my CPT Page?