passing the data related id in render php

This commit is contained in:
Antoine M 2024-07-10 15:33:20 +02:00
parent 2f415f4fa4
commit 37de8bc461
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ if ($relatedPost) {
?> ?>
<section id="<?php echo $anchor ?>" class="post-content-container <?php echo $anchor ? "has-custom-anchor" : "" ?>"> <section id="<?php echo $anchor ?>" class="post-content-container <?php echo $anchor ? "has-custom-anchor" : "" ?>" data-related-id="<?php echo $relatedPostId ?>">
<h2 class="post-content-container__title"><?php echo $relatedPost->post_title ?></h2> <h2 class="post-content-container__title"><?php echo $relatedPost->post_title ?></h2>
<?php echo $content; ?> <?php echo $content; ?>
</section> </section>

View File

@ -23,7 +23,7 @@ if ($relatedPost) {
?> ?>
<section id="<?php echo $anchor ?>" class="post-content-container <?php echo $anchor ? "has-custom-anchor" : "" ?>"> <section id="<?php echo $anchor ?>" class="post-content-container <?php echo $anchor ? "has-custom-anchor" : "" ?>" data-related-id="<?php echo $relatedPostId ?>">
<h2 class="post-content-container__title"><?php echo $relatedPost->post_title ?></h2> <h2 class="post-content-container__title"><?php echo $relatedPost->post_title ?></h2>
<?php echo $content; ?> <?php echo $content; ?>
</section> </section>