Languages: English • Türkçe • 日本語 (Add your language)
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: 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()