I'm building a portfolio site with many categories. One of them have subcategories.
(Portfolio -> Packaging, Graphic, Handmade, ...)
I need to display only the subcategory slug in my template. I used this code:
<?php echo get_category(get_query_var('cat'))->slug; ?>
but the result is "portfolio". How can I display only "handmade"?
Thanks for any help :)