Pages: display link to page and its sub-pages only
-
Hi all,
Apologies if this is covered elsewhere. I’ve searched all over but can’t find an answer.
I’m building a site which relies heavily on 1.5’s page functionality. I’d like to use pages and sub-pages almost like categories. So, if I have a page called “Colours”, I’d like to be able to have a box on that page that links to the page’s sub-pages e.g. “red, yellow, green” and so on.
I know that wp_list_pages lets me exclude certain pages, but I’d rather include pages, than have to update my template to exclude pages each time.
To sum up: I’d like to write a bit of PHP, in a template, that looks at what the page is (or what a sub-page’s parent page is) and displays links to all the associated sub-pages.
Any advice?
Thanks!
Matthew.
- The topic ‘Pages: display link to page and its sub-pages only’ is closed to new replies.