您的当前位置:首页 > 知识博客 > wordpress建站

WordPress分类摘要标签:category_description

时间:2024-03-16

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()


欢迎咨询/Welcome to inquire
tel/vx:18842938855
qq:1685522781
email:1685522781@qq.com

Copyright © 2019-2024 mysql.hk


Whatsapp
Powered by RRZCMS