//check if custom .php exist
$page = ABSPATH . "custom_pages/$relative_permalink.php";
if ($post->post_parent == 13) {
include(get_template_directory() . '/page-templates/area-template.php');
} else if (is_file($page)){
include($page);
} else {
echo '';
while ( have_posts() ) : the_post();
get_template_part( 'content', 'page' );
// comments_template( '' , true );
endwhile; // end of the loop.
}
?>
© 2022 The Southern Salad
Built by Kruhu