How to get name of custom taxonomy

I believe you are talking about when the archive.php is used as a taxonomy page. If so, you will first need to check if the current page being viewed is actually a taxonomy page. If you don’t do this check, you will get errors on pages that are not taxonomy pages, for instance date archive … Read more