If it is an option to use a plugin, here is one with over 100,000 installs, so it seems to do a good job:
https://wordpress.org/plugins/custom-post-type-permalinks/
It is exactly solving your client’s wish. After installing and activating it, go to Settings -> Permalinks -> and scroll down to the section Permalink Settings for Custom Post Types.
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
- add all blog posts to folder
- 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?
- How to get post content by calling ajax?
- How to remove /blog/ prefix for custom post types in permalinks?
- 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
- Templates for Custom Post Types and Custom Taxonomies
- Limit widget to a specific registered sidebar
- WP_List_Table Inside Metabox Not Working on Submit
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Add metabox with media uploader in a custom post type [duplicate]
- Custom permalinks
- Permalink for CPT with taxonomy
- Add links to post categories and taxonomies in wysiwyg link modal?
- automatically create taxonomy with same name as post title
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Custom post type category, taxonomy and URL rewrite problem
- Rewrite on custom post type permalink not working?
- Wp-query causing problems with the_content();
- saving custom post type data to different table in wordpress
- Display “Post 2 of 4” on single post page?
- Query post types with multiple keys
- Custom Post Type: How to display all of same taxonomy?
- Remove “-2” from a Toolset Types URL with the same post name
- Remove Post Page “View Post” Link
- How to make post sticky in the admin page?
- Permalinks not working for custom taxonomy on custom post type
- Does WordPress consider a post name unique if that same post name is in multiple Post Types?
- Which post does a taxonomy term belongs to?
- Add custom field to Posts and sort by it
- Custom post type as home page with custom url
- How to change the post type a theme shows by default?
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- CPT’s with landing page instead of archive – Url Rewrite?
- Custom Post Type – Duplicate Page Slugs
- Remove permalink for custom post type
- help
- How to Display Posts From Category Within a Custom Taxonomy?
- How to Make infinite loop of post
- Published post auto change status to pending after 90 days
- How to retrieve all wordpress posts (specific type) inside a function in php?
- Custom post type permalink returns 404 when set to private
- How to filter a custom post type by custom taxonomy without 404
- Automatically update slug with latest title within custom post type [duplicate]
- Modifying the default post from wordpress
- How to Query in WordPress which shows Alphabetic Posts?
- Pagination of custom post type leads to 404 error
- Custom permalink structure for remote content pages
- Adding an extra parameter [string] to my posts’ permalink?
- Custom Post Type nest under a normal WordPress Page
- Display custom post counts for author , not default posts
- Building a Data Intensive Website with WordPress
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Permalinks not working (404) for the ‘item’ post type
- Change permalink for custom post type?
- Order posts by years
- Use a different URL path / permalink for CPT
- Display all Categories except ones with a specific parent
- Post template not applying on theme (potentially rendering as Page template)
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- Custom post type defaults to index.php for archive page
- How do I insert a custom post type query after a certain number of recent posts and then resume recent posts?
- How to create editable sections in wordpress?
- Instructor can view, edit, delete only theirs courses
- Assign for all post of a post type a specific single-post template
- Widget area for individual posts (custom post type)?
- Adding categories to custom post type in permalink
- update a posts of other custom post type
- Show custom post type under last posts configuration
- 404 custom post type
- Custom post URLs
- Get post id of permalink for a specific custom post type?
- How to Associate Posts with Pages
- URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php
- delete custom post type using a submit form
- Add taxonomy to custom post type archive
- Why are my wp urls showing page not found?
- Custom post type – permalink
- Styling first post using Advanced Custom Fields
- How do I display the index position of a post from a custom post type?
- Two pagination in one page without AJAX