Hi all,
I was wondering if anybody knows of a way to display subpages in a (widget-made) list of pages only if the parent page is selected?
For instance, say there were three parent pages - dogs, cats and hamsters, and that hamsters page had two subpages - Russian hamsters and Syrian hamsters, how could I make sure that those two subpages are only shown in the list when the hamsters parent page is selected?
I am using the WP-Andreas theme and I know it has a subpages menu on the right hand side of the page but I don't want to use that - I want to keep everything in the main left-hand side menu.
Would it be helpful to give the hamsters page a separate template and do it there using wp_list_pages somehow (perhaps making a depth of 1 there where everything else would be 0?)? My problem there is that the page menu is made using a wp_list_pages line that is in the header.php file, not in any individual page template.
I have been rifling through forum threads and codex stuff on this topic but I can't seem to make the links to do this.
Any help greatly appreciated!
All the best,
Rory. :)