Easiest way to show total number of subpages
Use the following code, replacing the number after “child_of=” to the id of the parent page. <?php $count = 0; $pages = get_pages(‘child_of=681&depth=1’); foreach($pages as $page) { $count++; } echo $count; ?> Reference: get_pages