Posted By

f6design on 11/30/11


Tagged

wordpress taxonomy


Versions (?)

Wordpress: get current taxonomy


 / Published in: PHP
 

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

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

  1. $terms = get_the_terms($post->id, 'TAXONOMY_NAME');
  2. print_r($terms);

Report this snippet  

You need to login to post a comment.