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.
Custom permalink format example
Original WordPress permalinks
# "Product" permalinks http://example.com/product/cotton-t-shirt http://example.com/product/gray-denim-jeans # "Car" permalinks http://example.com/car/ford-focus http://example.com/car/tesla-model-x
New custom WordPress permalinks with taxonomy slugs inside
# "Product" permalinks http://example.com/calvin-klein/tops/t-shirts/cotton-t-shirt http://example.com/wrangler/gray-jeans/gray-denim-jeans # "Car" permalinks http://example.com/diesel/ford/ford-focus http://example.com/electric/tesla/tesla-model-x
Can I customize the permalink format and add the taxonomy slugs also to other post types?
Yes, of course, you can keep the permalink base (in our example: “car“), remove it completely or change the permalink format to whatever you like. It is also possible to use different permalink formats for each language individually. Here you can find more information on how to translate WordPress 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 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.