Timeline for Check in walker if current page is descendant
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 20, 2015 at 19:41 | comment | added | Nicolai Grossherr |
I can't explain to you further how the nav menu system of WP works, but that is well documented, so you should not have trouble getting the information you want. But certainly you have some misconception going on, I think you are probably more looking for something along the lines of wp_list_pages() . @PhilipKahn
|
|
Jul 20, 2015 at 19:27 | comment | added | Philip Kahn | The idea is that the navigation menu only has a few items on it, and all the other pages are (variously deep) children of this one page. Therefore, the menu being crawled is nowhere near all-inclusive. Perhaps I'm misunderstanding the way the menu item behaves, but isn't it just limited to the (say, 6) items in the menu? Rather than the (say, 100) pages scattered about as various levels of children? Most importantly, I have a Documentation nav item, and that has many children, ~ 3 deep. My idea was, on a given page, check that page and see if its topmost parent was Documentation | |
Jul 20, 2015 at 6:38 | history | answered | Nicolai Grossherr | CC BY-SA 3.0 |