WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

es:Function Reference/get tag link

Descripción

Devuelve el enlace url para un determinado Tag ID.

Uso

<a href="<?php echo get_tag_link($tag_id); ?>">nombre del tag</a>

Parámetros

$tag_id
(integer) (required) El Tag ID.
Default: None

Valores Devueltos

URL (string) 
URL con un enlace a el tag.

Filtros

Output from this function is filtered by the 'tag_link' filter. The first argument ($taglink) is the url as the function would normally output it, the second is the ID passed into the function.

apply_filters('tag_link', $taglink, $tag_id);

Archivo de origen

get_tag_link() esta ubicado en wp-includes/category-template.php.

Relacionados

Tags: get_tag(), get_tag_link(), get_tags(), get_the_tag_list(), get_the_tags(), is_tag(), the_tags(), single_tag_title(), tag_description(), wp_generate_tag_cloud(), wp_tag_cloud()

get_the_terms(), get_term_link(), wp_get_object_terms()

See also index of Function Reference and index of Template Tags.
This article is marked as in need of editing. You can help Codex by editing it.