Listing Parent and Sibling of Active Pages
-
Hi —
New Around Here. Amazing product and support. Thanks to all involved.
Total newbie here. But trust that I’ve searched for a definitive answer to this question.
I have a two-level page hierarchy. I would like wp_list_pages to display all the top level items, plus the siblings of the current page and, of course, the current page. I don’t want any non-sibling second-level items to show.
I don’t want to do this with a javascript hack. And I would rather leave the wp_list_pages code alone. Is there some way of getting the parent id of a current page and using this with ‘child_of’ when calling wp_list_pages.
thanks in advance for any help.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Listing Parent and Sibling of Active Pages’ is closed to new replies.