Posted By

f6design on 11/30/11


wordpress taxonomy

Versions (?)

Wordpress: get current taxonomy

 / Published in: PHP


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.