1. Home
  2. Docs
  3. Tutorials
  4. Add category/term slug to WordPress permalinks

Add category/term slug to WordPress permalinks

One of the disadvantages of WordPress is the inability to modify the permalinks. It is possible to customize them further by adding more rewrite rules and complex PHP code snippets. Nonetheless, it is an inconvenient solution for the majority of WordPress users. Happily, Permalink Manager enables you to quickly and simply create custom taxonomy slugs to any custom post type permalinks.

How to add taxonomy slug to (custom) post type permalinks

To add custom taxonomy slugs to WordPress permalinks, you will need to go to Permastructures section of Permalink Manager (“Tools -> Permalink Manager -> Permastructures“).

Now, scroll to the bottom of the page to locate the custom post type you want to modify. In this example, we’re adding two taxonomies to the Cars permalinks (Manufacturer and Fuel).

Then you should place the tags inside the permastructure. The permastructure tags are the names of custom taxonomies: %{name_of_taxonomy}%. In our example, they will be %manufacturer% and %fuel%. Accordingly, the tags will be different in your particular case.

You can find all available permastructure tags in “Permastructure tags” section.

Do not forget to save your changes! Permalink Manager will now add taxonomy slugs to custom post permalinks automatically.

The modified settings will be applied automatically to all new posts. If you wish to apply the new formats to existing URLs as well, you must regenerate them. In this article you can find detailed instructions on how to accomplish this.
Both Manufacturer & Fuel terms’ slugs are now present in single Car permalink.