There is single_cat_title()
that should do what you want.
Description
Displays or returns the page title if a category or tag archive is queried. Therefore, the
function can be used only outside the loop.
There is single_cat_title()
that should do what you want.
Description
Displays or returns the page title if a category or tag archive is queried. Therefore, the
function can be used only outside the loop.