FEATURE Introducing the cite reference component

This commit is contained in:
Nonimart 2025-06-20 15:19:02 +02:00
parent ad49b2004c
commit 67fc1a69d3

View File

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