Display list of custom taxonomies

<h3>Tootekategooriad</h3> <ul class="custom_cat_list"> <?php $categories = get_categories('taxonomy=kategooria&post_type=tooted'); ?> <?php foreach ($categories as $category) : ?> <li><a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->name; ?></a></li> <?php endforeach; ?> <ul>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.