Wordpress - Display current category title on category page
On a category page, you can use the function single_cat_title()
, or the more generic single_term_title()
. These functions pull from the global $wp_query
object, via get_queried_object()
.