How to get current taxonomy on term archive page
-
Hello!
I have custom taxonomy with terms, like:
Taxonomy1
-term1
-term2
Taxonomy2
-term1
-term2On every term archive page, I want to print addresses to other term archive pages, which I achieved, but.
$terms = get_terms(‘Taxonomy’, $args);
works for specified taxonomy.
How can I obtain current taxonomy slug, being on that taxonomy term archive page? You know, it should be something like $terms = get_terms($current_term_taxonomy, $args);
I’ve tried get_taxonomy() but couldn’t achieve anything ??
thanks a lot!
- The topic ‘How to get current taxonomy on term archive page’ is closed to new replies.