1. Home
  2. Docs
  3. Tutorials
  4. Add taxonomy slug to WordPress permalinks

Add taxonomy slug to WordPress permalinks

One of the WordPress drawback is the lack of possibility to customize the permalinks. It is possible to adjust them with extra rewrite rules and complicated PHP code snippets. Still, it is not a comfortable solution for most of WordPress users. Happily Permalink Manager allows to easily add custom taxonomy slug to any custom post type permalinks in just a few clicks.

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 down to find the custom post type that you would like to edit. In our example we are adding two taxonomies (Manufacturer and Fuel) to Cars permalinks.

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 the new settings! From now on, Permalink Manager will automatically add the taxonomy slugs to custom post permalinks.

Both Manufacturer & Fuel terms’ slugs are now present in single Car permalink.

Add taxonomy slug to old permalinks

The new settings will be automatically applied only to the new posts. If you would like to apply the new settings to the existing URLs you need to regenerate them. In this article you can find detailed instructions on how to regenerate the old permalinks.