Return to Snippet

Revision: 53647
at November 30, 2011 17:38 by f6design


Initial Code
$terms = get_the_terms($post->id, 'TAXONOMY_NAME');
print_r($terms);

Initial URL
http://wordpress.org/support/topic/get-the-current-category-taxonomy-term-name

Initial Description
In Wordpress if you are using a custom taxonomy you can get its details (id, slug, etc) using this snippet.

Initial Title
Wordpress: get current taxonomy

Initial Tags
wordpress

Initial Language
PHP