FEATURE Introducing the cite reference component
This commit is contained in:
parent
ad49b2004c
commit
67fc1a69d3
|
|
@ -2,9 +2,15 @@
|
||||||
$articleID = $args['ID'];
|
$articleID = $args['ID'];
|
||||||
$articleContent = get_the_content($articleID);
|
$articleContent = get_the_content($articleID);
|
||||||
$articleTitle = get_the_title($articleID);
|
$articleTitle = get_the_title($articleID);
|
||||||
|
$citeReference = get_field('cite_reference', $articleID);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article class="article-content">
|
<article class="article-content">
|
||||||
<h1><?php echo $articleTitle; ?></h1>
|
<h1><?php echo $articleTitle; ?></h1>
|
||||||
<?php echo $articleContent; ?>
|
<?php echo $articleContent; ?>
|
||||||
|
<?php if ($citeReference) : ?>
|
||||||
|
<p id="cite-reference">
|
||||||
|
<?php echo $citeReference; ?>
|
||||||
|
</p>
|
||||||
|
<?php endif; ?>
|
||||||
</article>
|
</article>
|
||||||
Loading…
Reference in New Issue
Block a user