Fix
This commit is contained in:
parent
abd8c65ee7
commit
d80cbb4c32
2 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ get_header(); ?>
|
||||||
<div class="entry-content tile" id="settings">
|
<div class="entry-content tile" id="settings">
|
||||||
<h3 style="margin-bottom: 14px;" class="subheading">Settings</h3>
|
<h3 style="margin-bottom: 14px;" class="subheading">Settings</h3>
|
||||||
<form action="/experience" id="settings" method="POST">
|
<form action="/experience" id="settings" method="POST">
|
||||||
<?php echo wp_kses_post(wp_nonce_field( 'experience', 'settings_nonce' )); ?>
|
<?php echo wp_kses_post( wp_nonce_field( 'experience', 'settings_nonce' ) ); ?>
|
||||||
<input class="checkbox" type="checkbox" id="toplevel" value="toplevel" checked="checked">
|
<input class="checkbox" type="checkbox" id="toplevel" value="toplevel" checked="checked">
|
||||||
<label for="toplevel">Display only top-level organisations</label>
|
<label for="toplevel">Display only top-level organisations</label>
|
||||||
<br>
|
<br>
|
||||||
|
|
|
@ -168,13 +168,13 @@
|
||||||
// phpcs:disable WordPress.CodeAnalysis.AssignmentInCondition
|
// phpcs:disable WordPress.CodeAnalysis.AssignmentInCondition
|
||||||
$i = 1;
|
$i = 1;
|
||||||
while ( $section_title = get_post_meta( get_the_ID(), 'ToC' . $i, true ) ) :
|
while ( $section_title = get_post_meta( get_the_ID(), 'ToC' . $i, true ) ) :
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="#section-<?php echo esc_attr( $i++ ); ?>">
|
<a href="#section-<?php echo esc_attr( $i++ ); ?>">
|
||||||
<?php echo wp_kses_post( $section_title ); ?>
|
<?php echo wp_kses_post( $section_title ); ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
endwhile;
|
endwhile;
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
?>
|
?>
|
||||||
|
|
Reference in a new issue