get_tag_link

TAG TAGS

What It Does

Gathers the URL for the specified tag ID.

Code

<?php echo get_tag_link(ID); ?>

ID

The numerical ID of the tag to be used.

Example

<a href=”<?php echo get_tag_link(15); ?>”>News</a>

The above example would display a hyperlink to the page for tag number 15 with the anchor text “News”.