slug; ?>
post_parent !== 0 ? get_post($currentPage->post_parent) : null; $grandParentPage = $parentPage && $parentPage->post_parent ? get_post($parentPage->post_parent) : null; $args = array( 'posts_per_page' => -1, 'order' => 'ASC', 'post_parent' => $currentPage->ID, 'post_type' => 'page', 'status' => 'publish', ); $childrenPages = get_children($args); ?> $currentPage->post_title, "description" => get_the_excerpt(), // "pageIcon" => $pageIcon, "pageIcon" => get_field('page_icon', $currentPage->ID), )); ?>
$subPage->post_title, "excerpt" => get_the_excerpt($subPage->ID), "permalink" => get_the_permalink($subPage->ID), "coverIllustration" => get_field("page_illustration", $subPage->ID), )); ?>