At the moment I have some jQuery which I have used to create a category filter on some of my category pages.
The pages are categorised according to country (using a category-$country-slug.php template).
I want to filter the posts shown on these pages by subcategories from the parent category 'resort-types'.
To add the categories as classes onto each post I have used:
<li class="<?php the_category_unlinked(' '); ?>">
which gives me all the 'resort-type' categories I want but also givse me the 'country' category.
How can I get a list of the subcategories to put in the class of each post? All I can find is how to get an
Any suggestions/advice would be greatly appreciated!