Amazing walker class & the depth “issue”
-
Contains amazing walker class that can be easily used as a special walker in your own
wp_nav_menu(...)
What was however a little mystery for a while were the depths.
Let’s say you want to only display menu from 3rd to 4th level. (classic menu with rolldowns/dropdowns, just shifted a few levels…) – now what you actually have to do is to set
'start_depth' => 2
and
'depth' => 4 //(actually start_depth +2 !
This was quite counter-intuitive, but if you think about it, it makes sense in the end…
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Amazing walker class & the depth “issue”’ is closed to new replies.