<?php
$relatedPostId = $attributes['relatedPostId'] ?? null;
$relatedPost = get_post($relatedPostId);

if (!$relatedPost->post_content || !$relatedPostId) return;
?>


<section id="questions-container-<?php echo $relatedPostId  ?>" class="questions-container-block">
	<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
	<?php
	if ($relatedPost->post_content || $relatedPostId) {
		echo do_blocks($relatedPost->post_content);
	}
	?>
</section>