WordPress分类摘要标签:category_description

文 / @WordPress主题

WordPress模板标签category_description输出分类、标签的摘要,一般用在分类页、标签页、描述标签中。

category_description( integer $category = 0 )

函数参数

$category

整数型,默认值:当前分类/标签ID

指定一个分类/标签ID,则输出该分类/标签的摘要

函数使用示例

<div><?php echo category_description(3); ?></div>

扩展阅读

category_description()函数位于:wp-includes/category-template.php

相关函数:

  • the_category()
  • the_category_rss()
  • single_cat_title()
  • wp_dropdown_categories()
  • wp_list_categories()
  • get_category_parents()
  • get_the_category()
  • get_category_link()
  • in_category()
添加UTHEME为好友
扫码添加UTHEME微信为好友
· 分享WordPress相关技术文章,主题上新与优惠动态早知道。
· 微信端最大WordPress社群,限时免费入群。