Site icon Hip-Hop Website Design and Development

Baby pages and sub-pages don’t seem. Why?

I’ve created a toddler web page. Nonetheless, after I entry “http://instance.com/Web page/ChildPage” doesn’t seem?

Web page (filename = web page.php -> content-page.php) [WORK]

Baby Web page (filename = web page.php -> content-child-page.php) [NOT WORK]

web page.php

$slug = get_post_field( 'post_name', get_post() );
echo $slug;


whereas ( have_posts() ) : the_post();

    get_template_part( 'template-parts/web page/content material' , $slug );

endwhile; // Finish of the loop.