tags on article page
This commit is contained in:
parent
05b49120d0
commit
b9eec084c5
@ -21,6 +21,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
|
<h4>Tags:</h4>
|
||||||
|
<?php
|
||||||
|
$tags = get_the_tags();
|
||||||
|
if ($tags) {
|
||||||
|
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>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
<?php
|
<?php
|
||||||
if (function_exists('get_field')) {
|
if (function_exists('get_field')) {
|
||||||
$related_posts = get_field('related_posts', $post_id);
|
$related_posts = get_field('related_posts', $post_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user