I have been trying for a long time now, and have come up with almost solutions all the time and was wondering if we could get to the bottom of the display multi level WordPress page menus.
In plain English here is what I want to do in my sidebar:
If the current page has children, then display them (only children, not grandchildren). If the current page has no children, then display the current pages siblings, including the current page, unless the current page is a top level page, in which case display nothing.
I just cannot after months of trying come up with a definitive solution. I am sure that it must be possible with all the WordPress child, parents and ancestor functions.
Look forward to receiving any help and thanks for your time.