How do I add a subcategory to the URL slug for a channel entry?
If you go into your Category Group’s settings and set the following settings:


Craft 2


Top Level URL Format: {slug}
Nested URL Format: {parent.uri}/{slug}

Craft 3


Category URI Format: {parent.uri}/{slug}



then you would be able to set your section’s Entry URL Format to this:


Craft 2

{myCategoryField.last.uri}/{slug}

Craft 3

{myCategoryField.inReverse().one().uri}/{slug}