How to Display wordpress tags in a list

Following code will display WordPress tags in an unordered list. Just copy and paste in your template.

                $tags = get_tags();
                if ($tags) {
                        ?><ul class="tags"><?
                        foreach ($tags as $tag) {
                                echo '<li><a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a></li>';

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …

Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us