I’m not sure it’s possible, or perhaps it just may not be the best approach. Here is my reasoning:
domain.com/post-type-name/taxonomy-name/term-name/post-title/
Posts can be attached to multiple terms, so in essence there could be multiple links to the same post:
domain.com/post-type-name/taxonomy-name/term-name/post-title/
domain.com/post-type-name/taxonomy-name/term2-name/post-title/
domain.com/post-type-name/taxonomy2-name/term3-name/post-title/
domain.com/post-type-name/post-title/
Depending on how you got there.
You will definitely be able to have domain.com/post-type-name/taxonomy-name/term-name/
, but I think that it may not completely make sense within WordPress to have such a long URI.
I think this for 2 reasons:
-
The possibility of multiple taxonomy terms (let alone multiple taxonomies attached to a custom post type, or any post) would create a lot of overlapping links, as well as more possibilities to break bookmarks – lets say I bookmark
/cars/dealers/honda/123-hot-rod
, but then you realize that it wasn’t actually Honda, it was Toyota – you changing the tax term related to the post would break that link. Not a likely occurance, but it’s possible. -
Frankly, it’s less user friendly. Not that the average user pays attention to the web paths they are on, but it is easier to remember
domain.com/cars/93-saturn-ion
than it would to remember (or understand)domain.com/cars/dealers/wonderland-auto/93-saturn-ion
.
When you are on that single post’s page, the default ‘above_nav’ in most themes includes the taxonomy terms with the date underneath of the Page title anyways, so that information is still there, in a more legible, and usable way.
Example:
123 Hot Rod
posted November 2, 2012 in Wonderland Used Cars