File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 135
135
<li>
136
136
<a href="#<?php echo (str_replace (' ' , '- ' , strtolower ($ question ->post_title ))); ?> "><?php echo $ question ->post_title ?> </a>
137
137
138
- <!-- this will need to also grab sub-groups too if Qs are empty, crawl downward -->
139
138
</li>
140
139
<?php endforeach ; ?>
141
140
165
164
166
165
</details>
167
166
168
- <?php echo apply_filters ( 'the_content ' , $ group ->post_content ); ?>
169
-
167
+ <?php if (!$ children ) : ?>
170
168
<?php foreach ($ questions as $ question ) : ?>
171
169
172
170
<h3 id="<?php echo (str_replace (' ' , '- ' , strtolower ($ question ->post_title ))); ?> "><?php echo $ question ->post_title ?> </h3>
173
171
<a href="<?php echo get_edit_post_link ($ question ->ID ); ?> " class="edit" >[edit]</a>
174
172
<?php echo apply_filters ( 'the_content ' , $ question ->post_content ); ?>
175
173
176
174
<?php endforeach ; ?>
175
+ <?php endif ; ?>
177
176
178
177
<?php
179
178
$ args = array (
You can’t perform that action at this time.
0 commit comments