i just managed to do what i needed with the help of danieliser`s function, thanks
Hey there, this walker works great, i just wanted to ask if there is any way you could help me to modify it a bit. I am kind of new and i can’t seem to make this work, i’m trying to get this to work for two days now.
I want the walker to only show the current submenu, so i have :
Parent 1
– Child 1
– Child 2
Parent 2
– Child 3
– Child 4
– Child 5
Parent 3
– Child 6
Now if i am on the page Child 1, i see Parent 2’s Childs, and i want it to be like this, when i’m on Parent 1`s childs the menu to show:
Parent 1
– Child 1
– Child 2
Parent 2
Parent 3
When i’m on Parent 2’s childs the menu to show:
Parent 1
Parent 2
– Child 3
– Child 4
– Child 5
Parent 3
And so on. Is this possible? if it is, could you at least give me a hint or something towards the right way?
Thank you