How to get a taxonomy term name by the slug?

Posted by Prem Tiwari | Updated on

The function you are looking for is get_term_by. You would use it as such:

This results in $term being an object containing the following:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers