Rewriting CPTUI Post Slug
-
I am attempting to remove the post type slug from the url from:
url.com/post-type-slug/post-name
to
url.com/post-nameSo I’ve set the following:
'rewrite' => true 'slug' => '/'
And it works. My posts in the custom post is now rewritten to:
url.com/post-nameBut is there any issues with this setup other than the conflicting permalinks with post and pages if they use the same post name?
Repost: https://www.ads-software.com/support/topic/removing-post-type-slug
Because I’m actually using CPTUI for this change.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Rewriting CPTUI Post Slug’ is closed to new replies.