Adds a custom shortcode that returns the number of children for a given page. Accepts page ID, name, or slug as input.
This plugin allows you to dynamically return the number of children for a particular page. Inserting
[children page="page-slug"] in a post or page, or
<?php do_shortcode('children page="page-slug" '); ?> anywhere in WordPress' code will return the number of children for that particular page.
Useful for creating dynamic table of contents pages, keeping track of page stats, general bragging, or any place where keeping a running tally might be desirable.