• I am attempting to remove the post type slug from the url from:
    url.com/post-type-slug/post-name
    to
    url.com/post-name

    So I’ve set the following:

    'rewrite' => array( 'slug' => '/' ),

    And it works. My posts in the custom post is now rewritten to:
    url.com/post-name

    But is there any issues with this setup other than the conflicting permalinks with post and pages if they use the same post name?

  • The topic ‘Removing Post Type Slug’ is closed to new replies.