single_cat_title()WP 0.71

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.

No Hooks.


String|null. Title when retrieving.


single_cat_title( $prefix, $display );
What to display before the title.
Default: ''
Whether to display or retrieve title.
Default: true


Since 0.71 Introduced.

Code of single_cat_title() WP 5.9.3

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