当前浏览:首页 / WordPress函数 / tag_description()

tag_description( int $tag )

检索标签描述

description 描述

tagmore...


参数

$tag

(int)(可选) 标签ID。默认为当前标签ID。


返回

(string) 标签描述(如果可用)。


说明

用法:
$description = tag_description();
注意:

输出包装在 <p> 标签。



源码

查看源码 官方文档


更新日志

版本描述
2.8.0开始引入

使用示例

  • 示例1

    基本示例

    显示标签id 28的描述。

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