1. Home
  2. Docs
  3. Tutorials
  4. Remove permalink base (slug) from WordPress permalinks

Remove permalink base (slug) from WordPress permalinks

Each of custom post types and taxonomies have its own permalink base (aka rewrite slug). Unfortunately, by default WordPress does not allow to remove the rewrite slugs. Nevertheless, with Permalink Manager you can fully customize your WordPress URLs. In this short article you will learn how you can easily remove the permalink bases.

By and large, you can not only remove the permalink bases but also rename them or define completely different permalink structures. For instance, with Permalink Manager you may use the same permalink base for multiple post types & taxonomies.

How to remove the slug (eg. portfolio-item) from the permalinks?

Fastest method: Bulk edit the custom permalinks

The most convenient and fastest way is to change multiple permalinks all at once. Actually, it should not take longer than few minutes and all the process can be completed in three steps.

Firstly, you need to go to “Tools -> Permalink Manager -> Permastructures” section. Secondly, as shown below, you should remove the slugs for chosen post types & taxonomies:

Original permastructure settings
New permastructure settings after the permalink bases were removed from “Portfolio items” & “Portfolio Categories”.
In this article, you can find more detailed instructions on how to use permastructures.

Henceforth, the slugs will be automatically removed from new permalinks. Afterwards, if you would like to apply the new formats also to of existing posts/terms, you ought to regenerate their permalinks. You can omit this step if you did not add any posts/terms before. To reset the custom permalinks, please go to “Tools -> Regenerate/reset” section in Permalink Manager admin panel.

Alternative method: Edit the custom permalinks manually

It is also possible to remove the slugs from each of custom permalinks manually. At the same time, you can also fully customize the individual permalink any way you like.