For this, you need to alter the way you register your custom post type to not use the “front” of your URL structure (like “blog”) for the URLs of that custom post type. You need to add this to your arguments array for the register_post_type()
call:
'rewrite' => array(
'with_front' => false,
),
Related Posts:
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Taxonomy, Terms, and Template Files
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Adding meta values to permalink
- Hierachical Custom post types permalinks not working
- Custom Posttype Inheritance (and url structure)
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Can you have two CPTs with the same permalink structure?
- Rewrite permalinks for custom posttype and custom taxonomy
- How to check if last uri segment is a custom post type or taxonomy term?
- Permalinks using event date (year & month) instead of publication date
- Custom taxonomy & post slug permalink
- Permalink Structure problem with cpt and custom taxonomy
- how to use two permalinks for one custom post type
- Clean URL permalink for custom post type
- Custom Taxonomy List links being re-written
- Custom Post Types, Custom Taxonomies and Permalinks ?
- Writing Custom Rewrite Rules that Incorporate Category for Custom Post Types?
- Custom post type permalinks giving 404s
- Can’t edit Custom Post Type slug/permalink
- Custom Permalink Tag breaks Pagination
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom Permalink for Taxonimie and Custom Post Type
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- Custom post type and taxonomy permalinks – Structure
- Custom Post Type and Custom Taxonomy Permalinks
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- How do I prefix blog post urls as mysite.com/blog/%postname%/ but allow authors to still be located at mysite.com/authors/%nicename%?
- Automaticly add slug to posts
- Custom post type, permalinks & pagination, going wrong
- remove permalink “front part” for custom post type
- Change Permalink Structure for Tag.php template
- Remove post type slug of all post types from permalinks
- Add archive slug to default post post type
- Custom Post type and permalink settings
- add category name to permalinks on product page /category-name/product-name
- WordPress add_permastruct unwanted matches
- WordPress Custom Post Type Repeated 404 Errors
- Child post with numeric only slug keeps redirecting to parent
- Permalink for a custom post type isn’t working and I don’t know why
- Add custom post type settings to wordress default posts
- Assign same parrent Page to pages AND custom post types
- Remove CPT name from permalink but add %category% instead
- Custom taxonomy returns 404
- Removing Custom Permalink Structure for Custom Post Type
- permalink /category/post-name with custom post type and taxonomy
- “Post name” permalink returns home page for custom posts
- Flush Rewrite Rules when new site is created on network
- Pretty URLs and custom post types
- How to make permalink structure %category%/%postname%/ work for custom post type?
- Lost of query parameter when using permalink
- Different results between permalink and query var search
- Custom post type Permalinks with hierarchical Taxonomies
- Can variables be used to rewrite a Custom Post Type permalink? [duplicate]
- How to implement a different permalink structure for custom post type?
- Set parent for custom post type archive rewrite url
- How to rewrite the beginning and end of the permalink structure in a custom post type?
- Custom Post Type permalink without /%day%/ and/or /%postname%/
- How to get all posts related to particular category name on button click?
- Custom Post Type Archive template not being called
- Enabling permalinks disables custom page template
- How to setup a permalink structure for a custom post type
- Query Custom Posts – Add To Selection
- add_query_arg() for custom post type on all visible links
- WordPress custom posts and permalinks
- Custom post type, permalink, add query variables problem
- Disable permalinks, but allow RSS feeds
- CPT permalinks Rewrite
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Set priority to permalinks
- Modify category permalink to use post type slug
- Changing CPT permalink
- CPT relations use in permalinks under single post type
- Custom Post Type Single Page and Archive Page redirects to Home Page
- Missing permalink for custom post type
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- hierarchical Custom post type child permalink not found
- Remove CPT Slug with 2 taxonomies and 1 post meta
- Custom post type and taxonomy same slug
- How to structure a website with custom post types and custom taxonomies?
- Allow duplicate permalinks slugs for custom posts by different authors
- WordPress page not showing up – replaced with last 10 posts?
- Creating custom post type relationships
- Change wordpress url permalink structure to show authors posts
- Custom taxonomy in custom post type archive with pagination
- Custom Post type and Taxonomy in post URL error
- Custom Post Type + Category archive
- Multiple Custom Post Type permalink issue
- Custom Post Types and rewrite rules – One CPT works and a cloned one doesn’t
- How to retrieve the permalink for a specific (custom) term?
- Permalink Trouble with Custom Post Type
- What is the proper way implement a global $wp_rewrite?
- How can you preserve URLs when moving posts to a custom post type?
- Dynamically change Custom Post Type Template OR Change Permalink?
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- What is the best way to relate different custom post types?
- Modify permalink of CPT archive to support two taxonomies
- Allow child pages with the same base as the CPT slug