Add tag list to page footer
-
- Ssr. Bludit
- Posts: 26
- Joined: Mon Sep 30, 2019 12:43 pm
Hi all and I hope you're enjoying your Christmas/other holiday you may celebrate.
I wonder if I could add a tag list to the end of my posts in my own theme? Where would I find the code for that?
Cheers!
I wonder if I could add a tag list to the end of my posts in my own theme? Where would I find the code for that?
Cheers!
This is what I use, for example:
Code: Select all
<?php if ( $page->tags( true ) ): ?>
<section class="article-tags">
<ul class="tags-list"><span>Tags</span>
<?php foreach($page->tags(true) as $tagKey=>$tagName) :?>
<a href="<?php echo DOMAIN_TAGS.$tagKey ?>" rel="tag"><li><?php echo $tagName ?></li></a>
<?php endforeach; ?>
</ul>
</section>
<?php endif; ?>
-
- Ssr. Bludit
- Posts: 26
- Joined: Mon Sep 30, 2019 12:43 pm
Thanks, that worked perfectly!