Codex tools: Log in / create account
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( $tagID ); ?>
The default usage returns the description of the current queried tag.
<?php $tag_descr = tag_description(); ?>
Displays a description of the tag id 28.
<?php echo 'Tag Description: ' . tag_description('28'); ?>
Since: 2.8.0
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