Catch Taxonomy Name According to Slug - Wordpress

Asked

Viewed 131 times

1

I was wondering if you could catch the name of taxonomy(wordpress) according to the Slug that is in the url(http://localhost/tag/Weg/? taxonomy=command-and-protection).

Information of the Taxonomy:

Name: Command and Protection
Slug: command and protection

I want the Taxonomy Name to appear on the screen according to the taxonomy of the URL

HTML, PHP, WORDPRESS

1 answer

0


get_term_by("slug", $_GET['taxonomy'], "tax_aqui");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.