I'm working on the navigation in a wordpress theme (done in the sidebar) and I can't figure out how to make the list of pages only show the subpages for the current page and other page's subpages not to be shown.
thus far I've been trying to figure out a way to do it with: wp_list_pages(' title_li' ); but to no avail
here's an Example:
Pages: -home <--- on this one -subpage1 -subpage2 -Blog -FAQ
Pages: -home -Blog -FAQ<--- on this one -subpage1 -subpage2
Pages: -home -Blog<---on this one (no subpages) -FAQ
thus far I've been trying to figure out a way to do it with: wp_list_pages(' title_li' ); but to no avail
here's an Example:
Pages:
-home <--- on this one
-subpage1
-subpage2
-Blog
-FAQ
Pages:
-home
-Blog
-FAQ<--- on this one
-subpage1
-subpage2
Pages:
-home
-Blog<---on this one (no subpages)
-FAQ
To list just the children of the current page (or its siblings if already on a child page):
ul#pagenavi li ul { display: none; }ul#pagenavi li.current_page_item ul, ul#pagenavi li.current_page_ancestor ul { display: block; }
the CSS one looks like it would work but I haven't tested that one yet,
Thanks you both for you time =)