<?php
$categories=get_categories('taxonomy=galeriak');
foreach ($categories as $category) {
?>
<li><a href="https://wordpress.stackexchange.com/questions/33902/<?php echo get_category_link( $category->term_id ) ?>" title="<?php echo $category->name ?>"><?php the_term_thumbnail ( $category->term_id, $category->taxonomy, $size="thumbnail", $attr="") ?><span><?php echo $category->name ?></span></a></li>
<?php } ?>
I use this code to display the categories from the “galeriak” taxonomy. Everything is working, except the href part, its return nothing. I tried it with and without the echo, but nothing seems to work. Any ideas?