I have parents and one sub-category level
in my category page I want to use in the sidebar a list of categories that works like:
- If I'm in the parent category page I want to show a list of ALL ITS CHILDREN
- If I'm in the child category page I want to show a list of ALL OTHER CHILDREN OF THE SAME PARENT
Is it something easy to do?
I'm assuming I should add a conditional but I don't know how to build the code, anyone who knows?