Title: tag_description
Published: April 25, 2014
Last modified: April 28, 2025

---

# tag_description( int $tag ): string

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#return)
 * [More Information](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#wp--skip-link--target)

Retrieves tag description.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#parameters)󠁿

 `$tag`intoptional

Tag ID. Defaults to the current tag ID.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#return)󠁿

 string Tag description, if available.

## 󠀁[More Information](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#more-information)󠁿

##### 󠀁[Usage:](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#usage)󠁿

    ```php
    $description = tag_description();
    ```

##### 󠀁[Notes:](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#notes)󠁿

Output is wrapped in <p> tags.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#source)󠁿

    ```php
    function tag_description( $tag = 0 ) {
    	return term_description( $tag );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/category-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/category-template.php#L1251)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/category-template.php#L1251-L1253)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#related)󠁿

| Uses | Description | 
| [term_description()](https://developer.wordpress.org/reference/functions/term_description/)`wp-includes/category-template.php` |

Retrieves term description.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/functions/tag_description/?output_format=md#comment-content-1139)
 2.   [Codex](https://profiles.wordpress.org/codex/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/tag_description/#comment-1139)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Ftag_description%2F%23comment-1139)
    Vote results for this note: -1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Ftag_description%2F%23comment-1139)
 4. **Basic Example**
 5. Displays a description of the tag id 28.
 6.     ```php
         <?php echo 'Tag Description: ' . tag_description('28'); ?> 
        ```
    
 7.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Ftag_description%2F%3Freplytocom%3D1139%23feedback-editor-1139)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Ftag_description%2F)
before being able to contribute a note or feedback.