pages match book order

This commit is contained in:
Prospect
2024-02-21 20:14:55 -05:00
parent 04313d7198
commit 3123504f15
9 changed files with 962 additions and 84 deletions

View File

@@ -17,15 +17,26 @@ get_header(); ?>
if (is_page($pageSlug)) { ?>
<?php get_template_part('/templates/partials/page_header'); ?>
<?php get_template_part('/templates/partials/page_header');
<div class="p-4 text-center">
<h2 class="font-medium underline uppercase">Overview</h2>
</div>
// Check if the ACF field "description" has a value
if (get_field('description')) { ?>
<p class="font-medium px-4 lg:text-center"><?php echo get_field('description', $pageID); ?></p>
<div class="p-4 text-center">
<h2 class="font-medium underline uppercase">Overview</h2>
</div>
<?php } ?>
<p class="font-medium px-4 lg:text-center"><?php echo get_field('description', $pageID); ?></p>
<?php get_template_part('/templates/partials/subcategory_cards'); ?>
<div class="max-w-7xl mx-auto">
<?php get_template_part('/templates/top-level/' . $pageSlug); ?>
<?php /** the_content(); */ ?>
</div>
<?php }
foreach ($page['subpages'] as $subpage) {
@@ -40,10 +51,10 @@ get_header(); ?>
get_template_part('/templates/partials/page_header'); ?>
<div class="max-w-7xl mx-auto">
<?php get_template_part('/templates/internal/' . $pageSlug); ?>
<?php get_template_part('/templates/internal/' . $pageSlug); ?>
<?php /** the_content(); */ ?>
</div>
<?php }
}
}