figment
New Member
Hi Guys, i am using the following line of code in a wordpress template to list the subpages of a page. So far so good.
Now the client is looking to add sub subpages to the subpages.
Page
- Subpage
- - Sub Subpage
- Subpage
- Subpage
The problem is that the code above is pulling all subpages and sub subpages into the same list. Is there any way i can filter the list that is being pulled out so it will not display the sub subpages?
So it only shows:
- Subpage
- Subpage
- Subpage
Thanks,
Alan
Code:
<?php wp_list_pages('title_li=<h4>' . __('Accreditation bodies:') . '</h4>&child_of=6'); ?>
Now the client is looking to add sub subpages to the subpages.
Page
- Subpage
- - Sub Subpage
- Subpage
- Subpage
The problem is that the code above is pulling all subpages and sub subpages into the same list. Is there any way i can filter the list that is being pulled out so it will not display the sub subpages?
So it only shows:
- Subpage
- Subpage
- Subpage
Thanks,
Alan