Check for Children

Want to be able to use one condition which includes or excludes pages based on weather they are children of a specific page?

Add this code to functions.php:

then use this in your page template: