You need to alter your rewrite arguments in your register_post_type() call:
'rewrite' => array(
'slug' => 'streets/streetdetails',
'with_front' => false,
);
Make sure to re-save permalinks in the admin after making the code change.
Related Posts:
- Theme localization of “slugs” (custom post types, taxonomies)
- How do I get a post (page or CPT) ID from a title or slug?
- custom slug for custom post type
- Disable permalink on custom post type
- Get list of all registered post types slugs
- Using Custom Fields in Custom Post Type URL
- Taxonomy archive with same slug as custom post type?
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- Post slug changed using code doesn’t reflect on editor when post is published
- Taxonomy page returns 404 page not found
- Setting a title on a Custom Post Type that doesn’t support titles
- Reslug a Custom Post Type
- Removing CPT slug from URL results in 404 error for archive page
- Custom Post Type pagination when CPT ‘rewrite’ rule and a page have the same slug
- Remove Slug from Custom Post Type results in 404
- Getting Post ID from slug during init
- Custom post type’s slug gets wrong when adding a custom meta box
- Rewrite CPT slug with two taxonomy slug instead of one
- WP query by custom post type slug/name
- Can’t edit Custom Post Type slug/permalink
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom Taxonomy breaking pages permalinks
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- Custom post type with slug for plural (archive) and for single
- Rewrite rules for custom post type slug
- Automaticly add slug to posts
- Make slug as ID Number for custom post types
- Custom post type and taxonomy slug issue
- Custom post types archive redirect
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Remove post type slug of all post types from permalinks
- Append date to custom post type url slug
- CPT custom archive template does not get loaded
- Am I using the flush_rewrite_rules function in the right place?
- Rewrite post type slug only for child theme
- Child post with numeric only slug keeps redirecting to parent
- How to add a post slug to a url?
- Permalink for a custom post type isn’t working and I don’t know why
- 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
- Allow duplicate slugs for custom post type with taxonomies
- Nested Custom Post Type or Custom Post Type Parents?
- Programmatically rewriting slug through functions.php but returns 404
- Create a custom php page and load it at a specific slug
- How to prevent a CPT’s slug and page slug from conflicting with each other?
- Multiple (two) category postings on the same page.
- Custom Post Type – Duplicate Page Slugs
- Remove permalink for custom post type
- Auto Slug Generation for Custom Post type
- Custom Post Type archive-{post-type}.php not working
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- Rename a slug label
- How to find a specific post_type using its “rewrite slug”?
- How to add current custom taxonomy slug to body class
- Change Slug of a Custom Post Type
- Using page slug in wp_query
- Listing all slugs?
- Why WordPress is picking archive.php instead of page.php?
- Automatically update slug with latest title within custom post type [duplicate]
- Custom Post Type to replace Woocommerce products – page not found error
- How to use a specific custom field in a custom post type as slug
- sort by name (slug) custom post type
- How to controll the Posts post type and general wondering about WP data structure
- How to change CPT single post slug
- How do I set a post slug automatically based on taxonomy?
- Custom Post type dont use custom page template (slug is not right)
- Custom rewrite rule based on other custom post type title
- Difference between a default post type and a custom post type?
- Custom Post Type not using correct page template
- WordPress doesn’t respect Page slug in custom post type url pagination. Keeps getting removed
- Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?
- Output all terms slugs for a loop filter
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Custom post type post_type_link gives “page not found” on any other custom post type
- Two CPT: one is using part of the custom rewrite slug from the other
- Custom taxonomy archive slug overwrites static page
- Slugs on hierarchical taxonomies
- Problem to get the link of the default ‘post’ post type like the orther custom types
- Can I override the permalink/slug on creation
- Get the custom post type slug but remove the rewrite prefix?
- Rewriting archive page slug to be different than custom post type slug
- Get full control over custom post type url
- custom post type archive slug vs. custom page template
- Add category slug as class attribute in a link array
- Relationship with 2 custom post types
- Category slug not showing for Custom Post Type
- How to make nested custom post type slugs work
- WP Query Post Type with same Taxonomy name
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- Is this the correct way to add post-slug input field?
- WordPress pagination URL
- is this a bug or not?
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Hide custom post type slug url from search engine [closed]
- Is it possible to use a post name in a custom post slug?
- Custom slugs with dates & IDs on Custom Post Type
- How to change permalink structure off default posts and also CPT’s posts
- Add post id to url instead of WordPress default -2 suffix
- Taxonomy Archive URL + Template
- Custom post type slug localization