Forums

[resolved] list all tags (3 posts)

  1. jimdrake
    Member
    Posted 2 years ago #

    how do i get a list of all my tags?

    i tried wp_tag_cloud(); but this wants to wrap the output in html (links or lists), i want a dry list with no formatting.

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    $tags = get_tags();
    if ($tags) {
    foreach ($tags as $tag) {
    echo '<p>Tag: <a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> </p> ';
    }
    }
  3. jimdrake
    Member
    Posted 2 years ago #

    thanks, perfect.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags