How to Show the Current Taxonomy Title, URL, and more in WordPress

Recently one of our users reported an issue with their theme. They had a share button on all pages including the archive pages. However, the taxonomy archive page share buttons were showing the information of the most recent post instead of the actual taxonomy archive. We took a look at their code just to find out that they were calling the_permalink(); and the_title(); tag which are reserved for posts not archive pages. In this article, we will show you how to get the current taxonomy title, url, and other information on the specific taxonomy archive page.