I realized I placed this in the wrong forum, so here it is, in the correct one:
I'm currently trying to work out how to get this work. What I want is that subcategories are only shown in categories that the current page, post or category is related to. For example:
--SUBCAT2.2 (active category)
I found a piece of code that works for categories.. but It doesn't show anything on a post. I'm sure it's not hard to fix but I'm not too good at this :). Is there anyone who can help me with this?
Here you can find the php code:
Code in sidebar.php