mitchrenton
Member
Posted 2 years ago #
Hi,
I thought this would be simple but I just can't seem to pull it off. I have 3 levels of pages, Parent, Child, Grandchild. I just want to display the 2nd level pages, ie, child pages.
Can anybody point me in the right direction here?
Thanks,
Mitch
Try using the child_of parameter with wp_list_pages.
That is a big issue to me as well. I want a solution ;(
esmi, that's not the solution!
<?php
$string = wp_list_pages('title_li&echo=0');
if (preg_match('#^.*?<ul>.*?<ul>.*?(\s*<ul>.*?</ul>)#is', $string, $matches))
{
echo $matches[1]."\n";
}
?>