Completed Daily Living

This commit is contained in:
prospect
2024-01-11 21:55:26 -05:00
parent b57ef39be9
commit a1527fcf30
22 changed files with 542 additions and 38 deletions

View File

@@ -2,9 +2,16 @@
$current_slug = get_post_field('post_name', get_post());
$pages = get_pages_as_array();
$subpages = getSubpagesForSlug($pages, $current_slug);
$pageForSlug = getPageForSlug($pages, $current_slug);
$parentPage = $pageForSlug->post_parent;
if (count($subpages) > 0) { ?>
if ($parentPage === 0) {
$subpages = getSubpagesForSlug($pages, $current_slug);
} else $subpages = getSubpagesForSlug($pages, $pages[$parentPage]['page']->post_name);
if ($parentPage != 0 && count($subpages) > 0) { ?>
<!-- Quick Links -->
<div class="px-2 mt-4">