Show children pages only when parent is 'current' page (wp_list_pages)
-
Hi,
I’m using this:
<?php wp_list_pages('exclude=31,36,39&sort_column=menu_order&title_li='); ?>
to display a list of all my ‘parent’ pages.I’d like it so if the user is on one of these pages (and it has children) that these children are then displayed underneath it in the HTML output.
Does anyone have experience of doing something similar to this?
Many thanks for any help.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Show children pages only when parent is 'current' page (wp_list_pages)’ is closed to new replies.