This commit is contained in:
Ben Goldsworthy 2021-01-23 13:26:37 +00:00
parent abd8c65ee7
commit d80cbb4c32
2 changed files with 3 additions and 3 deletions

View file

@ -168,13 +168,13 @@
// phpcs:disable WordPress.CodeAnalysis.AssignmentInCondition
$i = 1;
while ( $section_title = get_post_meta( get_the_ID(), 'ToC' . $i, true ) ) :
?>
?>
<li>
<a href="#section-<?php echo esc_attr( $i++ ); ?>">
<?php echo wp_kses_post( $section_title ); ?>
</a>
</li>
<?php
<?php
endwhile;
// phpcs:enable
?>