Add tag list to page footer

Post Reply
susannemcom
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!
hxii
Ssr. Bludit
Posts: 20
Joined: Sun Nov 22, 2015 11:01 am
Contact:

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; ?>
Learn by doing.

web
susannemcom
Ssr. Bludit
Posts: 26
Joined: Mon Sep 30, 2019 12:43 pm

Thanks, that worked perfectly!
Post Reply