3 Level Navigation with Wordpress


/ Published in: PHP
Save to your folder(s)

This was for a customer.
Basically it does this:
If a page has no children, it shows ... nothing,
if a page has a parent, it shows all other children of this parent (siblings) and the current page
if a page has a parent AND children (3rd level), it shows two separate menus, one with the siblings and current page and one with the children of the third level.
Maybe it helps someone.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.