<?php
$term_obj_list = get_the_terms( $post->ID, 'kategoria' );
$terms_string = join(', ', wp_list_pluck($term_obj_list, 'name'));
?>
<div class="card" onclick="window.location.href='<?php the_permalink(); ?>'">
  <div class="card-thumb">
    <?php the_post_thumbnail('h-6') ?>
  </div>
  <div class="card-content">
    <div class="meta">
      <?= '<span class="categories">'. $terms_string .'</span>'?>
      <?= '<span class="date">'. get_the_time("d.m.Y") .'</span>' ?>
    </div>
    <?= the_title('<h3>', '</h3>') ?>
    <?= the_excerpt() ?>
  </div>
</div>