List all tags in WordPress

$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> ‘;
}
}

SHARE
Previous articleIban Check
Next articleDisplay last tweet

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*