I've added a custom taxonomy called "materia" in my single product page. For instance: https://www.editorialufv.es/catalogo/universitarios-socialmente-responsables/
When you click on one of the items of this taxonomy you're redirected to a new page with all the products that have that same item. For instance clikking on materia>item "arquitectura" you're redirected to this page: https://www.editorialufv.es/materia/arquitectura/
The problem is that the header of this page is the title of the last book added below that item. I'd like that the header would display the title of the item selected. In this case "arquitectura". How could I do that?
Adding the following code to the header-title.php file I've got the slug of the taxonomy:
$page_title = esc_html__(get_query_var( 'term' ),'materia');
How could I get the title of the taxonomy itslef and not the slug?