Plugin info

Total downloads: 1,437
Active installs: 0
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 1/1/2013 (4747 days ago)
Added to WordPress: 9/22/2012 (13 years old)
Minimum WordPress version: 2.8
Tested up to WordPress version: 3.5.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 4747 days ago

20/100

Is Count Children abandoned?

Possibly abandoned (last update 4747 days ago).

Compatibility

Requires WordPress: 2.8
Tested up to: 3.5.2
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Count Posts in a Category, Tag, or Custom Taxonomy
Rating 5.0/5 (2 reviews)Active installs 200
Tag counter
Rating 5.0/5 (1 reviews)Active installs 10
Simple Download Monitor
Rating 4.6/5 (146 reviews)Active installs 20,000
Post Views Count (Support caching plugins!)
Rating 3.9/5 (35 reviews)Active installs 7,000
Waiting: One-click countdowns
Rating 4.6/5 (37 reviews)Active installs 5,000
Post View Count
Rating 4.6/5 (18 reviews)Active installs 5,000

Description

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 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

Support

Donations

Donations are graciously accepted to support the continued development and maintenance of this and other plugins. We currently accept Paypal and kind words.

Installation

  1. Download the latest zip file and extract the count-children directory.
  2. Upload this directory inside your /wp-content/plugins/ directory.
  3. Activate ‘Count Children’ on the ‘Plugins’ menu in WordPress.
  4. Insert [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:

  • [children type="name" page="Parent Page Name"]
  • [children type="id" page="28"]

It keeps returning 0 pages, why?

Make sure you’re using the correct page slug, sometimes they are different from the actual page name and capitalization matters. You can view them by clicking on the All Pages link under Pages.

Also don’t literally copy “page-slug,” you need to put the parent page you want counted there, that’s just a place holder. So to count the number of children in a page called ‘Book Reviews’ with a slug name of ‘book-reviews’ you would insert [children page="book-reviews"].

Are there other shortcodes?

[children] is the primary one, but there is also [countchildren], [childcount], and [pagechildren].

Can I change the shortcode?

Yes, just open count-children.php and add or change what text you want to trigger the shortcode in the array near the bottom.

Can you add this feature I just thought of?

Can I? Yes. Will I? Yes, if I think it would be a helpful addition. I’m trying to keep things clean and simple, but there’s always room for improvement, so let me know if you think a feature is lacking!

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.0

  • First released version.
  • There may still be bugs, but I can’t find any.