tag headline hidden if no tags
This commit is contained in:
parent
b9eec084c5
commit
24e5195554
@ -21,10 +21,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
<h4>Tags:</h4>
|
|
||||||
<?php
|
<?php
|
||||||
$tags = get_the_tags();
|
$tags = get_the_tags();
|
||||||
if ($tags) {
|
if ($tags) {
|
||||||
|
?><h4>Tags:</h4><?php
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
echo '<a class="st-chip st-chip-primary st-chip-tag-cloud" href="' . get_tag_link($tag->term_id) . '">' . $tag->name . '</a>';
|
echo '<a class="st-chip st-chip-primary st-chip-tag-cloud" href="' . get_tag_link($tag->term_id) . '">' . $tag->name . '</a>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user