Check if parent page has child page of certain slug
For now I was able to achieve it by adding this to my function: $slug_to_check = ‘my-child-slug’; // go through each child page we found foreach( $child_pages as $child_page ) { // get the slug of this child page we found $child_slug = $child_page->post_name; // get the link of this child page we found $child_link … Read more