WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get list of registred taxonomies of current post,
I mean:

register_taxonomy('color',array('thing'),$args) ;
register_taxonomy('shape',array('thing'),$args) ;
register_taxonomy('material',array('thing'),$args) ;
// etc..

So how can I get the list of taxonomies that registred to 'thing' posttype? Must be something like:

$taxonomies = get_registred_taxonomies_of('thing') ;
print_r($taxonomies) // Show "color,shape,material"...

Any idea? Thank you!

share|improve this question
up vote 0 down vote accepted

You are looking for get_object_taxonomies ex:

$taxonomies = get_object_taxonomies('thing') ;
print_r($taxonomies) // Show "color,shape,material"..
share|improve this answer
1  
Thank you so much! – Digerkam Feb 4 '13 at 15:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.