Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.