If I understand what you are doing…
If you have categories set to load at “/category-name/” and a category named “/movies/” and a custom post type set to load at “/movies/” you’ve got conflicting elements. The rewrite rules are competing. That is going to be problematic. If you set has_archive
to false when you register the post type, WordPress will not create the “/movies/” archive page and that might get you a step forward (though you won’t have an archive page for the CPT), but you are still mixing category URLs and custom post type URLs so I’d expect there to be other problems.
My answer is going to be “I doubt you will ever get this working right and even if you can approximate something functional you probably shouldn’t”.
Related Posts:
- Custom Post Type within the Loop on Homepage (Page Template)
- Setting a homepage – doesn’t seem to work
- Permalinks for single-[custom-post-types] not working
- Custom Post Type Single Page and Archive Page redirects to Home Page
- % encoded URL giving 404 error in WordPress
- Custom Post Type + Category archive
- button onclick with get_post_permalink
- custom home page and custom index page?
- Permalink for a custom post type isn’t working and I don’t know why
- Return the latest post from a custom Taxonomy and Post Type
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- Add custom post type settings to wordress default posts
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- 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
- WordPress Custom Post Type Permalinks dynamic term slugs
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- custom-taxonomy/post_name instead of the default post_type/post_name
- Show custom post archive when custom post not specified
- Show custom post type relationships by taxonomy
- Group CPT posts by custom taxonomy
- Assign same parrent Page to pages AND custom post types
- Can’t remove front from permalinks for custom taxonomy category page
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Best way to style first post differently?
- WordPress custom post type permalink rewrite shows page not found
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Completely remove custom post type permalinks (“One Page” website)
- Using taxonomy term in CPT permalink – Pages 404’s
- A to Z List of Custom Post Type in three columns
- Removing custom post type slug from URL
- Custom post type, organized by categories
- 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
- Customize Custom Post Type URL
- What’s the WP way to load remaining custom posts?
- Create a custom php page and load it at a specific slug
- URL rewrite add author as base
- Remove CPT name from permalink but add %category% instead
- Permalinks /country/city/cpt/postname/
- Custom Permalink to remove category word , keeping posts permalink with date?
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- Seamless permalinks between Custom Taxonomy and Custom Posts
- WP Query with categories only shows one post and ignores the category
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- What to and how to proceed with CPT to make DB small and efficient?
- Need help with permalink rewrites for Custom Post Types with hierarchical relationships
- Custom Post Type Permalink empty
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Post ID randomly printing on page
- A custom post within a custom post
- Change custom post type permalink to show name of post from another custom post type?
- Custom Post Type Permalink
- Display Custom Taxonomy Alphabetically
- Full Custom Post Type List Organised by two Taxonomies
- Displaying Custom Posts on a Page
- Permalinks for custom post type
- Shortcode not working with post counter
- How to have this permalink structure: post_type/postname/custom_inner_page
- Problem: wp_query outputs all images on site
- Additional section in custom post type permalink
- Static page determines as home, but it is not
- How to include term custom meta into the custom taxonomy term permalink structure
- Blog posts for custom post type only
- Path to custom post type
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Get custom post type’s fields in a while loop as variables
- Custom taxonomy returns 404
- The loop seems stuck to a single (now deleted) post
- Posts per row on archive page (custom post type)
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Permalinks: custom post type -> custom taxonomy -> post
- How do I know the ‘meta_key’ for ordering my custom post type
- Custom post type archive pagination 404
- CPT’s with landing page instead of archive – Url Rewrite?
- How to change permalink to include custom post type
- Removing Custom Permalink Structure for Custom Post Type
- Custom post type, permalinks, taxonomies and blog posts
- Custom post type permalink tag 404
- Custom post type permalink returns 404
- Use the same date-based permalink structure for all post types
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- permalink /category/post-name with custom post type and taxonomy
- Custom Theme With Custom Loops
- Custom Post Types strange pagination problem
- “Post name” permalink returns home page for custom posts
- Custom post type and taxonomy permalinks
- Hierarchical permalinks for custom post type and taxonomy
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- Make custom post types and pages place nice, re: rewrite
- Custom Post Fields at the beginning of a Custom Permalink
- Flush Rewrite Rules when new site is created on network
- Pretty URLs and custom post types
- Form action doesn’t work if slug isn’t same as custom post title
- How to make permalink structure %category%/%postname%/ work for custom post type?
- set permalink for CPT
- Ignoring slug capitalization on rewrite rule for custom post type archive page