WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So when you put %category% in the permalink structure that tag will be replaced with the path from the root category to the furthest subcategory, where, when placed in multiple categories, it will take the category order in account.

So how is this possible for custom taxonomies?

I came up with the following code: http://pastebin.com/pVyKzryS

I was wondering if someone had a better way to accomplish the same?

share|improve this question

This will probably be easier to do when the following filter lands:


Update July 16. 2012: Fixed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.