How can I call the_tags as a list without hyperlinks?

2 Answers
2

<ul>
   <?php
    $tags = get_tags();

    foreach($tags as $tag) {
        echo "<li>$tag->name</li>";
   }
   ?>

</ul>

Leave a Reply

Your email address will not be published. Required fields are marked *