WordPress get tag summary tag: tag_ description

WordPress template tag_ Description is used to get the summary of the tag, that is, to get the content of “image description” in the tag settings_ Description () can also get the summary of the classification. The classification of WordPress is not much different from the label.

tag_description( integer $tag = 0 )

Function parameters

$tag_ id

Integer type, default value: current tag ID

Specifying a tag ID will return a summary of the tag.

Examples of function usage

<?php echo '标签描述:' . tag_description('28'); ?>

Extended reading

tag_ The description() function is located in: WP includes / category- template.php

Related tags:

  • get_ tag()
  • get_ tag_ link()
  • get_ tags()
  • get_ the_ tag_ list()
  • get_ the_ tags()
  • is_ tag()
  • the_ tags()
  • single_ tag_ title()
  • wp_ generate_ tag_ cloud()
  • wp_ tag_ cloud()
Related Article
WordPress comment date tag: comment_date

WordPress template tags comment_ Date is used to output the date of a comment, usually in a custom comment template. Read more

WordPress comment summary tag: comment_excerpt

WordPress template tags comment_ Excerpt is used to output the summary of comments. The default output is 20 characters. It Read more

WordPress comment time tag: comment_time

WordPress template tags comment_ Time is used to output the publishing time of the current comment, which is the same Read more

WordPress RSS format comment author name tag: comment_author_rss

WordPress template tags comment_ author_ RSS is used to output the comment author name in RSS format, which has no Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image