Codex tools: Log in
Languages: English • Türkçe • 日本語 • (Add your language)
Contents |
First available with WordPress Version 2.8, this template tag returns the description of a tag. A tag ID can be passed as a parameter, but if no tag ID is passed, the description current queried tag will be returned.
<?php tag_description( $tag_id ); ?>
The default usage returns the description of the current queried tag.
<?php $description = tag_description(); ?>
Displays a description of the tag id 28.
<?php echo 'Tag Description: ' . tag_description('28'); ?>
tag_description() is located in wp-includes/category-template.php.
Tags: the_tags(), tag_description(), single_tag_title(), wp_tag_cloud(), wp_generate_tag_cloud(), get_tags(), get_the_tags(), get_the_tag_list(), get_tag_link()