WordPress开发者和主题制作者的搜索引擎



single_cat_title ›

Since0.71
已弃用n/a
single_cat_title ( $prefix = '', $display = true )
参数: (2)
  • (string) $prefix Optional. What to display before the title.
    Required: No
    默认: (empty)
  • (bool) $display Optional, default is true. Whether to display or retrieve title.
    Required: No
    默认: true
返回:
  • (string|void) Title when retrieving.
定义在:
文档:

Display or retrieve page title for category archive.

Useful for category template files for displaying the category page title. The prefix does not automatically place a space between the prefix, so if there should be a space, the parameter value will need to have it at the end.



源码

function single_cat_title( $prefix = '', $display = true ) {
	return single_term_title( $prefix, $display );
}