You have to use post_type_link filter. Create a handler to handle this filter, you can create $permalink as per your need there.
In addition to this, you may have to use “pre_get_posts” action also.
I used both these couple of months ago, I created permalinks to show as cpt_name/post_name.
Related Posts:
- Custom permalink structure only for default posts
- Custom post type single (permalink) throws a 404 error
- Custom post type permalinks breaking due to 3.1 bug fix
- Move first half of posts to one parent page, second half to the other page
- How could I change my Permalink from blog to custom structure? [closed]
- Post titles and thumbnails as links to custom post types?
- Changing permalink of WordPress
- Custom Post Types and Broken Permalinks
- Permalink base only for posts
- Append a random string to a post permalink
- Default post type doesn’t display in url
- Changes done in admin panel are taking time to reflect in the REST api responses
- Use category base slug in posts’ permalink
- Setting Custom Sort Order of Posts within a Category
- Exclude drafts in all() view of edit.php
- Change the Slug of Post Type post to baseurl/post/%postname%
- Different permalink for posts and authors
- How to control which category will be picked for the slug of a post?
- Change slug with custom field
- How to change the layout and styling of posts according to their category in WordPress?
- adding a custom css class to post
- Prevent duplicate posts in wp_insert_post using custom fields
- Add default content to post (for specific category)
- WP get_permalink Return Wrong URL
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- display order of connections
- same template for multiple custom post type single
- How to place HTML below the title of the (custom) post overview
- How to get a nofication when post submitted
- .current-menu-item class on custom post type children pages – again?
- Display page content AFTER a loop of posts
- Run a function when post is deleted?
- How can I create custom button in post.php
- how to replace embedded “full” sized images within a post with the “large” ones
- Downgrade user from role that allows post creation
- Best way of deletion of old posts [closed]
- Bulk update post slugs through database
- Animated gif for a thumbs
- I am unable to publish/update post
- How to change permalink on post click on post listing page
- Get posts of ONE taxonomy term of custom post type
- WordPress Custom Fields (Checkboxes with multiple values)
- Custom Post Archive Page not working
- Adding buttons to Add New Post and Add New Page
- After database migration, posts not showing up in dashboard
- WordPress custom Query for Posts in Category display posts multiple times
- Editing the default page to show all posts, rather than most recent ones
- Categories list into registration form
- Add a custom meta box in the post options that loads some html code in the header
- Static posts page with home.php
- Custom post types related to same custom post type?
- Using setup_postdata() with multi-dimensional array
- Check if a custom post type has already been created
- WordPress Query Posts From Category Post on Static Page
- Edit multiple custom post types while saving a new or edited post
- How to allow multiple thumbnail upload for Posts?
- add external project to web site wordpress on production
- Custom Post Limit for homepage only without plugin?
- Static pages not working
- Change default post style to columns
- Custom Post Type, post-formats associated to custom post type > 404 archives
- Internal linking to posts permalink fail because of spaces and stripe at postname
- Adding a custom post type meta field to rss
- Delete post from admin but not from database
- Custom Select Query – Selecting the Year?
- how to create a sub section in posts
- What would causes search to return incorrect results?
- get posts, run a custom query, and join the results
- Permalink Short code showing unnecessary link text inside the loop
- Tag for custom post type
- Post relationships/nesting
- Manual Scheduler For Custom Post Type
- Prevent Archive URLs
- Dev and prod on the same database- dev version active for IOS
- How to delete/customize imported demo content from a theme or add my own?
- Displaying dynamic content (blog posts/portfolio) on a static homepage and keep the blog post styles
- How to give priority to page than to posts permalink structure?
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- How to list all names and descriptions of a custom taxonomy
- How can I have the posts from one word press blog show on the presentation page of another word press site
- Is there a way to change the complete URL of the blog post for a redirecting tracking link?
- WordPress with static posts page and custom permalink structure doesn’t find posts with numeric permalinks
- Can’t seem to replicate permalink structure for localhost development site
- My posts section for logged in user
- Make assigning post to a specific category equivalent to assigning it to all categories
- How to mix pages and sub-categories in a url
- Show a Category Specific Info Box
- Make a custom URL and link to custom Template
- Changing permalink of custom category
- Special Query: Title, Terms, Content – %LIKE%
- Overwrite URL on blog posts
- First Custom Post Custom Fields Empty After New Custom Post
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- 301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%
- How do I add /blog/ on my permalink without affecting the portfolio project types permalink?
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- Permalink remain the same on each page
- After the local installation of an old WP website I can see the homepage but I can’t access to the articles, why?
- Dynamic Menu Item
- I have a website issue I am trying to resolve