fixing problem with do_block commentary
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7c5a401580
commit
2633843395
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$relatedPostId = $attributes['relatedPostId'] ?? null;
|
$relatedPostId = $attributes['relatedPostId'] ?? null;
|
||||||
$relatedPost = get_post($relatedPostId);
|
$relatedPost = get_post($relatedPostId);
|
||||||
|
// echo $relatedPost->post_content
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
|
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
|
||||||
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
|
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
|
||||||
<!-- <?php echo $relatedPost->post_content ?> -->
|
|
||||||
<?php echo do_blocks($relatedPost->post_content) ?>
|
<?php echo do_blocks($relatedPost->post_content) ?>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -17,4 +17,4 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@wordpress/scripts": "^26.9.0"
|
"@wordpress/scripts": "^26.9.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$relatedPostId = $attributes['relatedPostId'] ?? null;
|
$relatedPostId = $attributes['relatedPostId'] ?? null;
|
||||||
$relatedPost = get_post($relatedPostId);
|
$relatedPost = get_post($relatedPostId);
|
||||||
|
// echo $relatedPost->post_content
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
|
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
|
||||||
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
|
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
|
||||||
<!-- <?php echo $relatedPost->post_content ?> -->
|
|
||||||
<?php echo do_blocks($relatedPost->post_content) ?>
|
<?php echo do_blocks($relatedPost->post_content) ?>
|
||||||
</section>
|
</section>
|
||||||
Loading…
Reference in New Issue
Block a user