Display all tags

PHOTO EMBED

Sat Jun 25 2022 11:52:14 GMT+0000 (UTC)

Saved by @Kristi #wordpress #tags

<!-- Get all tags displayed -->
    <nav class="all-tags">
        <ul>
            <?php
                $tags = get_tags('post_tag'); //taxonomy=post_tag
        
                if ( $tags ) :
                foreach ( $tags as $tag ) : ?>
                    <li class="tags">
                        <a href="<?php echo esc_url( get_tag_link( $tag->term_id ) ); ?>" 							title="<?php echo esc_attr( $tag->name ); ?>">
                        <?php echo esc_html( $tag->name ); ?>
                        </a>
                    </li>
                <?php endforeach; ?>
            <?php endif; ?>
        </ul>
    </nav>
content_copyCOPY

This code displays all tags that are not empty

https://stackoverflow.com/questions/39685167/list-all-the-tags-in-a-wordpress-blog