For the love of me, I cannot find the way. There seems to be tree functions that need specific post id, but I want all the taxonomies used by that custom post type.
For the love of me, I cannot find the way. There seems to be tree functions that need specific post id, but I want all the taxonomies used by that custom post type.
$terms = get_terms($taxonomy = 'mytaxonomy');
foreach ($terms as $term) {
echo '<li><a href="' . get_term_link($term->slug, $taxonomy) . '">' . $term->name . '</a></li>';
}You must log in to post.