Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function has_children () {
- global $post;
- $children = get_pages('child_of=' . $post->ID);
- if (count($children) > 0) {
- echo "I have been a naughtly slutty page... now I have " . count($children) . " little bastards running around.";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment