Hi,
I’ve just modified this code to exclude all children of a parent category, a feature that I saw requested elsewhere, but those threads were closed so I figured I’d share the code here.
The code is giving me one problem, though, if parent categories are removed, it’s adding the separator as needed, but if there are no categories that need removing, it doesn’t add the separator. Any ideas anybody?
Code below:
[Code moderated as per the Forum Rules. Please use the pastebin]