1

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.

0
2

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'
)
2
  • Setting "with_front" to false when setting up a custom post will remove the "blog" slug from the post type url. – John Doe Feb 5 '14 at 15:55
  • Add this to your answer, thanks! And additionally add that the parameter rewrite is part off your register_post_type call. – Nicolai Feb 5 '14 at 16:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.