Child pages and sub-pages do not appear. Why?

I have created a child page. However, when I access “” doesn’t appear?

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

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


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

while ( have_posts() ) : the_post();

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

endwhile; // End of the loop.

View donation page

Children's page from Dan.  Clicking on child page gets redirected to homepage



Leave a Comment