Remove multisite “blog” slug from specific custom post type

I have wordpress multisite, by default multisite has the word “blog” added to all post types excluding “pages” How would i only remove it from a specific custom post type.

If I go to setting and remove the “blog slug” from setting it gets remove from the actual blog section of the website which i don’t want because i need to keep the URL the same.

Related posts

1 comment

  1. Set with_front to false to not prepended the front base to the permalink structure. Customize the permalink structure via the slug:

    'rewrite' => array( 
        'with_front' => false, 
        'slug' => 'portfolio'
    )
    

Comments are closed.