fixing children blocks display by using do blocks

This commit is contained in:
Antoine M 2024-09-13 15:47:50 +02:00
parent c222292817
commit 4e49408762
3 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,5 +6,6 @@ $relatedPost = get_post($relatedPostId);
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
<!-- <?php echo $relatedPost->post_content ?> -->
<?php echo do_blocks($relatedPost->post_content) ?>
</section>

View File

@ -6,5 +6,6 @@ $relatedPost = get_post($relatedPostId);
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
<?php echo $relatedPost->post_content ?>
<!-- <?php echo $relatedPost->post_content ?> -->
<?php echo do_blocks($relatedPost->post_content) ?>
</section>