FEATURE Introducing tag list
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ad86d2b086
commit
98043b37dc
|
|
@ -3,11 +3,18 @@ $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);
|
$citeReference = get_field('cite_reference', $articleID);
|
||||||
|
$tags = get_the_terms($articleID, 'etiquettes');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article class="article-content">
|
<article class="article-content">
|
||||||
<h1><?php echo $articleTitle; ?></h1>
|
<ul class="article-tags-list">
|
||||||
<?php echo $articleContent; ?>
|
<?php foreach ($tags as $tag) : ?>
|
||||||
|
<li class="article-tag">
|
||||||
|
<?php echo $tag->name; ?>
|
||||||
|
</li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
|
<?php the_content(); ?>
|
||||||
<?php if ($citeReference) : ?>
|
<?php if ($citeReference) : ?>
|
||||||
<p id="cite-reference">
|
<p id="cite-reference">
|
||||||
<?php echo $citeReference; ?>
|
<?php echo $citeReference; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user