Add tag list to page footer

Post Reply
susannemcom
Ssr. Bludit
Posts: 10
Joined: Mon Sep 30, 2019 12:43 pm

Wed Dec 25, 2019 5:27 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: 15
Joined: Sun Nov 22, 2015 11:01 am
Contact:

Thu Dec 26, 2019 12:52 pm

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: 10
Joined: Mon Sep 30, 2019 12:43 pm

Sun Dec 29, 2019 3:21 pm

Thanks, that worked perfectly!
Post Reply