WordPress – Retrieve a Page if it’s a direct descendant of another Page August 28, 2022 by Tarik Billa have a look at: get_page_by_path() codex.wordpress.org/Function_Reference/get_page_by_path