The best way to do this is via .htaccess. Take a look at this answer: https://stackoverflow.com/questions/7710411/how-to-remove-part-of-url-with-htaccess
Related Posts:
- Mixing custom post type and taxonomy rewrite structures?
- How to rewrite URI of custom post type?
- Custom rewrite rules for archive page and single post
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom post types – Use post_id in permalink structure
- Custom Post Type and Taxonomy URL rewrite
- Custom post type permalink: only use %post_id% and remove %postname%
- Rewrite custom post type rss feed links
- Add category to custom post URL
- Creating a custom public user page
- Archive page with multiple taxonomies rewrite
- rewrite get parameter with custom post type
- How to filter custom post type archive by meta value
- Taxonomy archives based on Custom Post Type
- Multiple custom post types using the same taxonomy = URL frustrations
- Taxonomy page returns 404 page not found
- Child pages on hierarchical Custom Post Types 404s
- Remove unwanted part of permalink custom structure from CPT url?
- How to have a custom URL structure for a custom post type?
- Permalinks for CPT breaks permalinks to pages
- WordPress custom post type url change
- Changing a custom post type “has_archive” after registered
- Possible to change the slug of default post type?
- Custom Post Type rewrite redirects to homepage
- Custom Post Type slug same as page name causing a conflict
- Adding paged query to custom URL rewrite
- Custom Post Type rewrite rules not working, how to alter the rewrite order?
- Rewrite Custom Post Type URL slug
- Customising rewrite rules for CPT single post URL to work as paged URL
- Remove custom post type slug not working for child pages
- Custom WP TItle from custom template with dynamic URL structure
- Rewrite rules for custom post type slug
- Change URL of posts and also Custom Post Type
- Custom Post Type rewrite
- Displaying Posts of a Custom Type
- How to have custom post type /example/ and then posts /example/posts.html
- Remove url rewrites for registered taxonomies
- Change custom post type slug from plugin options
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- Get Taxonomy Term Title by it’s URL
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Custom rewrite url category
- Using taxonomy term in CPT permalink – Pages 404’s
- How to add rewrite rule to custom post type with parent in url with cpt ui?
- Programmatically rewriting slug through functions.php but returns 404
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Rewrite custom post type url – Multiple post types
- Why isn’t my custom post type archive URL translating?
- Rewrites/query for multiple hierarchical custom post types
- Post Type rewrite rule to point to custom Page/template
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Custom post type’s permalink adds the name of the post type before the post name
- Custom taxonomy and post type with same slug
- Best way to specify “article type” in URL
- I can’t access custom taxonomy page listing
- How to have permalink like domain.com/term/postname?
- Combine multiple CPT names to create valid permalinks
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- How to create custom search result page with custom URL parameters for custom post type?
- Page inside custom post type (url rewrite?)
- How to rewrite the post slug of a custom post type post
- Custom post type URL
- Add Custom Values to Permalinks Through Custom Fields and Posts
- Archive page for custom post type and custom taxonomy
- Why does my URL keep returning 404 error code?
- Custom Post Type nest under a normal WordPress Page
- Combine 2 different custom post slugs into a single permalink?
- Use a different URL path / permalink for CPT
- Setting Parent Page to Post
- Add rewrite rule for custom post type single page
- Custom taxonomy terms as children of multiple custom post types
- Custom Post Type & Taxonomies – Rewrite
- Remove custom permalink base from CPT custom category and custom tags
- How to change URL for custom post type archive?
- How to handle this wordpress custom post type rewrite problem?
- Custom Post Type not using correct page template
- Change CPT permalink to use the category
- add_rewrite_rule wordpress ignoring url pattern, wp rewrite not working
- Rewrite of Custom Post Type doesn’t work with dynamic data
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- add_rewrite_tag broke permalinks that doesn’t use that specific tag
- How to use a custom post type as child of a particular post of another CPT?
- Custom URL for Custom Post Type & Custom Taxonomy Term
- Custom taxanomy and custom post type – pagination leads to 404
- Flush rewrite rules when new cpt is registred
- Custom post url in search.php isn’t the correct rewrited url
- I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?
- Custom WordPress URL
- Customizing the custom post type permalink
- URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- 2nd and 3rd Custom Post Type URL’s 404ing
- Custom Post Type – Rewrite slug [duplicate]
- Generate daily archive whenever any post type is added
- Rewrite rules for using the same base slug for multiple content types
- How to change custom post type slug without damage seo? [closed]
- add_rewrite_rule not working in Custom Post Type UI Plugin
- Menu Structure and URL structure, with Pages and Post-Type-Posts