Add (grand)child pages automatically to nav menu

I want my submenus to be generated automatically. I’ve used some plugins for this, but after a while they don’t get updated anymore or they have a conflict with the theme I use.

I followed this question: Add child pages automatically to nav menu and it works great, but it shows grand-children pages in the menu as if they are direct children of the parent. Can anyone help me out with displaying the grandchildren in another submenu under the current submenu?

Read more here:: Add (grand)child pages automatically to nav menu

Leave a Reply

Your email address will not be published. Required fields are marked *