Count Children
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
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.
Readme Generator
- This plugin’s readme.txt file was generated by the bitacre Readme Generator for WordPress Plugins.
Support
- Plugin Homepage
- plugins@shinraholdings.com
Donations
Donations are graciously accepted to support the continued development and maintenance of this and other plugins. We currently accept Paypal and kind words.
- 01Download the latest zip file and extract the count-children directory.
- 02Upload this directory inside your /wp-content/plugins/ directory.
- 03Activate ‘Count Children’ on the ‘Plugins’ menu in WordPress.
- 04Insert [children page="page-slug"] in a post or page (replacing page-slug with an acutal slug name) to return the number of child pages under that page.
Frequently asked questions.
How do I add it into my posts?
You must insert the shortcode in location where you want to count to appear: (always replacing page-slug with an acutal slug name)
- [children page="page-slug"]
The shortcode assumes you are giving it slugs, but it can also accept page names or IDs: