WordPress: Add Parent Term Slug to Child Term URL
WordPress: add the parent term slug to child term URLs By default, terms of a custom hierarchical taxonomy do not include the parent slug in their URL. A child term “Lorem” under the parent “Test” gets the URL /topics/lorem/, not /topics/test/lorem/. Adding the parent slug gives cleaner, more descriptive URLs that reflect the hierarchy.