Displaying sibling pages with wp_list_pages.
I’ve been searching and searching. I’ve seen links to the folding page list plugins at: http://www.webspaceworks.com/wp-plugins/foldpagelist.html Unless I’m grossly misunderstanding the brief docs, I dont think that’s what I need.
I’ve beaten my site into submission and have all of the child pages displaying in the sidebar of relavant top level pages. When I click one of the child pages, that list of course goes away since the sidebar is set up to display the ‘children’ of the current page.
I’ve seen enough threads here by searching to know that I’m not alone in this quest. I’ve seen some ‘solutions’ that suggest setting up multiple templates/sidebars but that seems like the wrong direction. It’s like, with wp_list_pages() all of the logic is there, it’s just missing a (sibling_of) function.
Is there a new answer out there that I’ve just missed? The hack I’m considering (and haven’t the faintest idea how to do but I’m learning quick thanks to the codex and this forum) looks something like:
“if this page is the child of another page, display that other page’s children here.”
“if this page has this ID, display the children of this parent page ID” (yuck)
Are either of these even possible? At least the first would be automatic. Why are my posts so damn long?
Thanks so much for any guidance.
- The topic ‘Displaying sibling pages with wp_list_pages.’ is closed to new replies.