• We’re using the code underneath to pull in the child and grandchild pages along with an excerpt and a link.

    <?php
    	$pages = get_pages('child_of='.$post->ID.'&sort_column=post_title' );
    	$count = 0;
    	foreach($pages as $page)
    	{ ?>
    		</br>
    		<h4><a href="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_title ?></a></h4>
    		<p><?php echo $page->post_excerpt ?></p>
    		<p><a href="<?php echo get_page_link($page->ID) ?>">View Details >></a></p>
    	<?php
    	}
    ?>

    How do do I filter out the child pages so only the grandchild pages are showing.

    Currently using it on this page

  • The topic ‘Show only Grandchild pages.’ is closed to new replies.