• Resolved gmcray

    (@gmcray)


    Great plugin. This is going to be very useful for us.

    My problem is this: We have a permalink structure that looks like “https://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!

    https://www.ads-software.com/plugins/wp-knowledgebase/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Maeve Lander

    (@enigmaweb)

    Sorry, the permalink structure is not customisable at this time, however it is definitely something I’ll look into for future development – I agree it would be nice.

    I’ve never actually tried stripping part of a slug before so I’m afraid I can’t comment on whether your proposed solution would work or not. I guess the easiest way to test would be to give it a try! You can always remove it if it breaks things.

    hey!
    did you get rid of ‘blog’?

    Thread Starter gmcray

    (@gmcray)

    Yes, but I did it the easy way and just changed the permalink structure. WordPress made the 301s automatically and everything worked without a hitch.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing base slug’ is closed to new replies.