get_the_archive_title()

Retrieve the archive title based on the queried object.