Hello people
I wonder how to find ou the slug of the subcategory the post is in on the single.php-view.
Precise: The article is in the category "main" and in the subcategory of main "sub". I wanna display the slug of the subcategory 'cause I wanna link to the page with the URL: http://www.example.com/sub. Another article is in the subcategory of main "sub2". In this second article I wanna link to the URL: http://www.example.com/sub2. and so on.
Does anybody know how to get the slug of the subcategory an article is in?