Codex

Template Tags/tag description

Contents

Description

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.

Usage

 <?php tag_description$tagID ); ?> 

Default Usage

The default usage returns the description of the current queried tag.

<?php $tag_descr = tag_description(); ?>

Parameters

$tagID
(string) (optional) The ID of the tag to return a description.
Default: return description of current query tag

Example

Displays a description of the tag id 28.

 <?php echo 'Tag Description: ' tag_description('28'); ?> 

Change Log

Since: 2.8.0

Related

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

See also index of Function Reference and index of Template Tags.