Custom Nav walker display current menu item children, or siblings on no children
This is the walker I used to display only children of the current menu item. Or the menu items siblings if it doesn’t have any children of its own. There are comments throughout the class explaining each section <?php class SH_Child_Only_Walker extends Walker_Nav_Menu { private $ID; private $depth; private $classes = array(); private $child_count = … Read more