I recently moved a parent category and its children from the default categories taxonomy to a new custom taxonomy. The data moved over just fine and posts are properly associated with the company name in the the new company taxonomy.
Before
- Taxonomy: Category
- Term: Company
- Child Term: Mozilla
After
- Taxonomy: Company
- Term: Mozilla
The problem I just ran into is that when I display the terms associated with the
post using the_terms
is builds the url as follows:
http://example.com/company//mozilla
I knew I could fake the correct results by manually building the URL, but I wanted to understand why it was happening. What I was hoping to figure out was why the double slash was happening and how to fix it.