WordPress分类标题标签:single_cat_title

WordPress模板标签single_cat_title用于在分类页输出分类标题,使用比较少见。

single_cat_title( string $prefix = '', bool $display = true )

函数参数

$prefix

字符串值,默认为空

在分类标题前输出的字符串

$display

布尔值,默认值:true

值为false时,只返回结果而不是输出结果。

函数使用示例

<?php single_cat_title('分类:'); ?>

扩展阅读

single_cat_title()函数位于:wp-includes/general-template.php

相关函数:

阿里云