When registering the custom post types, set with_front
to false
:
register_post_type(
'my_post_type',
[
// ...etc.
'rewrite' => [
'with_front' => false,
],
]
);
The post type URL will then not include anything extra you’ve added in the Permalinks settings.
Related Posts:
- Add extra parameters after permalink?
- Change permalinks for posts but not for custom post types
- Custom permalinks – post type – hierarchical taxonomy’s
- Add extra parameters after permalink?
- Automaticly add slug to posts
- Add custom post type settings to wordress default posts
- Permalink misbehaving in Custom Post Types
- Check post on publish for blank title
- How to implement a different permalink structure for custom post type?
- How to setup different permlalinks for posts and pages?
- Adding /blog in front of single posts (only)
- How to mass get post editor URLs
- Permalink for specific post type
- News post with multiple permalinks? When opened from different page
- Creating custom post type relationships
- Links Image in “Catalog” Page to Posts
- 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?
- Remove slug from custom post type post URLs
- Custom Post Type Permalink / Rewrite not working immediately
- Get category id from post id of a custom post type
- WordPress Custom Post Type is Matching on Partial Slug
- Change slug of registered custom post type in child theme
- Custom permalinks
- Permalink for CPT with taxonomy
- Custom post type permalink changing itself every other change
- Custom Permalinks for Custom Post Types and Taxonomies
- Showing current taxonomy terms
- Removing parent slug from URL on custom post type
- Newer/Older posts links display same posts on every page
- Custom post type category, taxonomy and URL rewrite problem
- custom sortable column
- Custom Post Type: How to display all of same taxonomy?
- Custom post type permalink missing /post_type/ front
- How to embed form data within the ‘Add new post’
- Remove POST_TYPE from custom post type permalink
- When viewing single parent post, display list of children
- Limit Authors to their Own Posts on front-end excluding admins
- Get all posts WHERE custom_field is LIKE value
- Custom post types and permalink
- custom post type default permalink
- Custom post types, taxonomies, and permalinks
- How to specify URLS for custom posts & taxonomies
- Loop on front-page.php
- How to create custom boxes with text inside?
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Custom Post Type permalink shows wrong page: homepage/index.php
- Get term name and term parent into custom post type permalink
- Rewrite rules for custom posts types
- Disable block with taxonomies at post page
- Changing custom type name hides the posts
- Two Custom Post Types Many to Many Relationship
- Problem with displaying posts in the CPT category
- How to change the post type a theme shows by default?
- URL rewrite add author as base
- No Permission to add new Page, Post or CPT with Admin role
- Update postmeta Parent when post_status child change
- Hierarchical permalinks for custom post type and taxonomy
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- 2 Different Custom Post Types in Submenu
- How to assign classes to all elements?
- Reworking function for counting custom post type posts count
- Best way to specify “article type” in URL
- How to have permalink like domain.com/term/postname?
- How to Make infinite loop of post
- WP_Query with custom post type ID
- Custom post type permalink returns 404 when set to private
- Custom post type slug 404
- Modifying the default post from wordpress
- how to retain the ability to modify the post slug after applying a post_type_link filter?
- Custom permalink structure for remote content pages
- WordPress Custom URLs
- Adding an extra parameter [string] to my posts’ permalink?
- Permalinks not working (404) for the ‘item’ post type
- Wp PageNavi only works with default permalinks on a custom post type?
- Custom category URL not displaying posts
- Order posts by years
- Duplicate slug/permalink issue while adding same post name
- Display all Categories except ones with a specific parent
- How to change Elementor Template for Single Page Post on Load
- Instructor can view, edit, delete only theirs courses
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- subtracting the current post form then whole loop, which is generating all CPT titles
- Pretty permalink structure with multiple (AND OR) taxonomies
- Custom post URLs
- How can I add a “fake” parent into the permalink?
- Custom Post Type Archive Links Not Working
- Custom Post Type Categories Not Maintaining URL structure any more
- Add category slug as class attribute in a link array
- Custom Post Type used for FAQs Accordion
- delete custom post type using a submit form
- Why are my wp urls showing page not found?
- Custom Post Type – Rewrite slug [duplicate]
- Post content stays the same but permalink changes ?
- Custom Post Type Permalinks with %category%
- Can I set a CPT title field to a dropdown with preset options if user is of a given type?
- Custom post types permalinks not working
- Rewrite rules for using the same base slug for multiple content types