When you register your post type, the with_front
argument of rewrite
should be false
, so the permastruct is not appended to the front of your custom post type permalink.
$args = array(
// snip...
'rewrite' => array( 'with_front' => false ),
// snip...
);
register_post_type( 'your-post-type', $args );
Related Posts:
- Links Image in “Catalog” Page to Posts
- Add extra parameters after permalink?
- Custom Post Type Permalink Page Not Found
- Custom permalinks – post type – hierarchical taxonomy’s
- single-type.php not working, delivering 404
- Add extra parameters after permalink?
- Multiple Content Block
- How do I create an archive page for standard posts?
- Remove parent from custom post type
- Automaticly add slug to posts
- Get term name and term parent into custom post type permalink
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Add custom post type settings to wordress default posts
- JS innerhtml changing style when using AJAX
- How to change the post type a theme shows by default?
- How to have this permalink structure: post_type/postname/custom_inner_page
- Some posts from custom post type to subdomains
- Permalink misbehaving in Custom Post Types
- Check post on publish for blank title
- Custom post type permalink sends to 404.php
- WP_Query with custom post type ID
- How to implement a different permalink structure for custom post type?
- How to setup different permlalinks for posts and pages?
- Custom Post Type – Main page for certain posts
- Adding /blog in front of single posts (only)
- How to mass get post editor URLs
- Error 404 change permalink term custom term taxonomy
- How to display custom field in product description?
- Post template not applying on theme (potentially rendering as Page template)
- add all blog posts to folder
- Permalink for specific post type
- News post with multiple permalinks? When opened from different page
- call a function when insert and update a custom post type
- Creating custom post type relationships
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- creating a custom post template
- erase post excerpt limitation [×]
- Custom Post Type permalink not working on new posts
- Change permalinks for posts but not custom post type?
- Wp-theme Development
- How to get permalink of post based on post name?
- button onclick with get_post_permalink
- Adding a new custom post type using the editor causes 502 bad gateway error
- Custom fields in Permalinks?
- Blog page showing same content as homepage
- apply filters only to specific post listing without check the url parameters
- How Can I Set the Post Author of a Post I Just Created With PHP?
- How do I fix permalinks for custom post types that has the same slug as a page?
- Custom post type and body_class: Remove “blog” class
- WordPress Orderby Numeric Value Not Working
- Custom post type, permalinks & pagination, going wrong
- How much control do we have over CPT rewrite slugs? Can I create a “root” page for my CPT with out the page path, and then have paths for other pages?
- Change URL of posts and also Custom Post Type
- Custom post type template and custom post page not working
- ACF simple text field value not showing
- Exclude child pages from archive.php
- is there a way to retrieve posts that do not have a featured image assigned?
- Auto-generated posts not showing in backend (but being counted!)
- Shortcode for display posts on home page show only one post
- Deleting Custom Post type data using mySQL command
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Find the user who initially created the post
- Permalinks not working for custom taxonomy on custom post type
- remove permalink “front part” for custom post type
- Made Custom Post Types, but single.php not working
- Is it possible to place custom post type files inside a folder in theme directory?
- Permalink Structure CPT With Custom Taxonomy Fails
- Parent & Child Taxonomy slugs in custom post permalink
- Need help targeting a custom post type with conditional tags
- How to get the post type from a category id?
- Displaying a custom post types custom taxonomy value?
- Custom Post Types and independent Categories – complex Taxonomy
- Change Permalink Structure for Tag.php template
- Notice: Undefined index: suppress_filters
- How to Separate CPT From Regular Posts?
- Removing parent slug in hierachial custom post type
- Remove rows in the manage post/page view
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Bizarre Permalinks Issue: 404 Errors Everywhere
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Easy way to change custom post type name for permalinks?
- Custom post type permalinks
- Use different taxonomies in different custom post types’ permalinks?
- custom permalinks based on taxonomies for custom post type
- Why does wordpress keep adding postname to my CPT’s permalink in the end?
- How to create custom boxes with text inside?
- How to add post_type=value when editing that post type in the WordPress admin?
- post_type_link not working in gutenberg
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Wrong generated page_name/slug on first publish of custom post type
- Remove post type slug of all post types from permalinks
- Custom template won’t load for a custom post type (custom permalinks used)
- Open Custom Post Type as PDF
- Using The REST API How To Pull All Custom Posts?
- Making a custom help center page
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- Stop / prevent WordPress from updating permalinks of custom post type
- What’s the difference between same wp functions get_posts(); functions in different form?
- Custom taxonomy in URL showing 404
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)