pages match book order
This commit is contained in:
25
page.php
25
page.php
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user