This can be set in a plugins’ options if you’re using a plugin to generate a Custom Post Type (such as CPT UI).
Otherwise if you’ve created this post type in the functions.php file you should amend or add to your your code as follows:
'with_front' => false
i.e. if your permalink structure appears as:
yourwebsite.co.uk/blog/custom-post-title
then setting this to ‘false’ will make your url something like:
yourwebsite.co.uk/custom-post-title
Related Posts:
- Child pages on hierarchical Custom Post Types 404s
- Removing CPT slug from URL results in 404 error for archive page
- Custom Taxonomy 404
- Custom Post Type rewrite rules not working, how to alter the rewrite order?
- Custom taxonomy in URL showing 404
- Using taxonomy term in CPT permalink – Pages 404’s
- Custom post URL 404 error
- Set a CPT slug as a base name for all the taxonomies
- Post type Permalink
- Custom Post Type URL Rewriting?
- Mixing custom post type and taxonomy rewrite structures?
- Custom post type single page returns 404 error
- How to rewrite URI of custom post type?
- Rewriting a custom-post-type permalink with taxonomy term?
- Getting hierarchical custom post type permalinks to work just like pages
- Remove custom post type slug from URL
- Add .html (dot HTML) extension to custom post types
- Custom post type pagination 404 fix?
- Custom rewrite rules for archive page and single post
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- Custom post type, no need for single view, plus want permalink rewrites that include hash in URI
- How to remove slug from hierarchical custom types in 3.5.2
- Custom post types – Use post_id in permalink structure
- Custom post type 404s with rewriting even after resetting permalinks
- Multiple post types – share same ReWrite slug?
- Custom post type yearly/ monthly archive permalinks
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Custom Post Type and Taxonomy URL rewrite
- Custom post type permalink: only use %post_id% and remove %postname%
- Custom Post Types 404 Issue
- Custom post types – Use post_id in permalink structure when using has_archive => true
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- Custom post type archive 404’s with paginate_links
- Rewrite custom post type rss feed links
- Pagination throws 404 error on custom taxonomy archive pages
- 404 on child page when parent page slug is identical to custom post type
- Using /%postname% for a custom post type
- Add category to custom post URL
- Why would WordPress use ‘attachment’ in a custom post type’s query string?
- Is it possible to change the URL of custom post types to hide the post type slug?
- Single custom post type page redirecting to 404 page
- Custom post type URL with post ID that allows archiving and paging
- Changing the URL Structure of a Paginated Custom Post
- Removing base slug from hierarchical custom post type
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- How to modify URL structures in custom post types and taxonomies or terms
- Creating a custom public user page
- Adding meta values to permalink
- Archive page with multiple taxonomies rewrite
- rewrite get parameter with custom post type
- Hierachical Custom post types permalinks not working
- Custom post type taxonomies URL rewrite
- WordPress custom taxonomy URL rewrite on spelling errors
- How to disable a Custom Post Type Feed?
- Custom Posttype Inheritance (and url structure)
- Enforcing canonical URLs with multiple custom post types
- Permalinks so that one custom post type appears to be a child of another, not working
- How to filter custom post type archive by meta value
- Create permalink structure for one taxonomy archive per custom post type
- Adding %author% in custom post type URL structure?
- Taxonomy archives based on Custom Post Type
- Slug for custom post type archive
- Custom permalinks
- Change page /2 to /transcript with a Rewrite
- Multiple custom post types using the same taxonomy = URL frustrations
- Permalink rewrite with custom post type and custom taxonomy
- Issues when rewrite rules collide?
- Custom post type permalink changing itself every other change
- Taxonomy page returns 404 page not found
- Make permalinks based on an ACF-field
- Remove unwanted part of permalink custom structure from CPT url?
- Custom post type’s get_permalink returns wrong url
- Custom post type permalink structure with the category also acting as an archive
- Prepend meta_value to permalink of post
- Custom Post Type Works but Still Shows “Page Not Found”
- Defining a default page for custom post type
- How to create custom URLs for Custom Post Type sub sections?
- How would I leverage custom Taxonomies in this scenario?
- WordPress custom post type category pagination 404 Error
- Pass parameter to custom post type single while keeping clean url
- Custom Permalinks for Custom Post Types and Taxonomies
- WordPress returns 404 on custom rewrite rule conflict in parameters
- Rewrite custom post type url’s adding meta box values
- Custom Post Type Rewrite Rule for Author & Paging?
- How to have a custom URL structure for a custom post type?
- Pagination throws 404
- Removing parent slug from URL on custom post type
- Multiple parameters in a custom post type url rewrite
- Display CPT taxonomies as an archive page
- Permalinks for CPT breaks permalinks to pages
- WordPress custom post type url change
- Including two taxonomies in a permalink structure
- WP Rewrite Rules – Custom post type & taxonomy
- How to create download links based on Custom Fields with Rewrite API
- How do I redirect all 404 errors of a specific post type to another URL?
- URL rewrite and navigation structure for wordpress custom post type
- Changing a custom post type “has_archive” after registered
- WordPress monthly archive links result in 404