I'm using a custom permalink structure for posts, which is domain.com/blog/%postname%/. However, I have a custom post type called 'events', and I don't want to use the default custom permalink structure for this custom post type, as domain.com/blog/events/ doesn't make sense. I want to just use domain.com/events. How can I override the custom permalink structure for a custom post type? I've found plugins that will allow you to set a custom permalink structure specifically for custom post types, but they won't allow me to remove the base permalink structure, only extend it.

  • what is the value of with_front in your post type registration code? – Milo Apr 22 '15 at 6:02
  • You have a multisite installation right? Try this plugin: wordpress.org/plugins/remove-blog-slug – Janez Apr 29 '15 at 6:57
  • Thank you, with_front was the key. I just had to set that to false. – Josh Warren May 4 '15 at 6:45

Setting with_front to false solved the issue.

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.