<?php
/*
* There is no specific template for child pages, but it can be implemented easily with
* get_template_part().
*
* 1. Create a file named "content-child.php"
* 2. Create a file named "content.php"
* 3. Use the following code below to grab the appropriate template
*/
if( $post->post_parent !== 0 ) {
get_template_part('content', 'child');
} else {
get_template_part('content');
}
?>