Only update href, not id.

This commit is contained in:
Kim Taylor
2024-09-26 00:35:46 +10:00
parent 51af861f38
commit c47eb353a7

View File

@@ -68,8 +68,8 @@ $councilCount = count($councils);
<?php foreach ($councils as $key => $council): ?> <?php foreach ($councils as $key => $council): ?>
<!-- wp:heading {"level":3,"className":"is-style-default"} --> <!-- wp:heading {"level":3,"className":"is-style-default"} -->
<?php $lga_page = $lga_pages[$key]; ?> <?php $groupSlug = sluggify($council); ?>
<h3 class="wp-block-heading is-style-default" id="<?php echo $lga_page; ?>"><a style="text-decoration: none;" href="/<?php echo $lga_page; ?>"><?php echo htmlspecialchars($council); ?></a></h3> <h3 class="wp-block-heading is-style-default" id="<?php echo $groupSlug; ?>"><a style="text-decoration: none;" href="#<?php echo $lga_pages[$key]; ?>"><?php echo htmlspecialchars($council); ?></a></h3>
<!-- /wp:heading --> <!-- /wp:heading -->
<?php <?php