ID, 'nav_menu')[0]->term_taxonomy_id; } else { $menuTermID = null; } ?>


Add new sub page
'page', 'posts_per_page' => -1, 'post_parent' => $_GET['child-edit'], 'orderby' => 'date', 'order' => 'DESC', 'post_status' => ['publish', 'draft', 'trash'] ]; $query = new WP_Query($args); if ($query->have_posts()) : ?> found_posts == 1) : ?>

(' . $query->found_posts . ') child page.'; ?>

found_posts > 1) : ?>

(' . $query->found_posts . ') child pages.'; ?>

No pages found