Removing base slug
-
Great plugin. This is going to be very useful for us.
My problem is this: We have a permalink structure that looks like “http://site.com/blog/%postname% . Changing the permalink structure is something we’d rather not do. But with this, custom post types look like …/blog/custom-post-type-slug/content. Some plugins like WooCommerce have a built-in override. WP Knowledgebase does not.
Is there any way to strip /blog our so we don’t have /blog/knowledgebase/content? I’ve read where the following code is recommended to be added:
‘rewrite’ => array(‘with_front’ => false, ‘slug’ => ‘your-slug’)
but it has to be where the custom post type is registered. Any thoughts on how to do this? Thanks in advance!
The topic ‘Removing base slug’ is closed to new replies.