carhop__carhop-theme__DEV/template-parts/components/posts/post-content.php
Antoine M 01a6145310
All checks were successful
continuous-integration/drone/push Build is passing
FEATURE Introducing default post components to be reused
2026-02-24 17:19:53 +01:00

19 lines
401 B
PHP

<?php
$articleID = $args['ID'];
$articleContent = get_the_content($articleID);
$articleTitle = get_the_title($articleID);
$citeReference = get_field('cite_reference', $articleID);
?>
<article class="post-content entry-content">
<?php the_content(); ?>
<?php if ($citeReference) : ?>
<p id="cite-reference">
<?php echo $citeReference; ?>
</p>
<?php endif; ?>
</article>