Is it possible, within the loop (or given the post ID) to retrieve the name/slug of the main custom taxonomy of a custom post?
What I really need is the taxonomy term, and that one I can find it with:
wp_get_post_terms($post->ID, 'taxonomy-name);
but in order to do it I need to provide the taxonomy name. What if I don't know it in advance?
Any idea?