<?php $kproduct = get_query_var('kproduct'); ?>
<article class="article-five">
  <figure class="position-relative mb-4">
    <a href="<?php echo $kproduct['link'] ?>">
      <img src="<?php echo $kproduct['kaveh_custom']['thumbnail_url'] ?>" alt="<?php echo $kproduct['title']['rendered']; ?>" class="w-100 d-block radius-15" />
    </a>
    <ul class="position-absolute top-50 translate-middle-y">
      <li class="text-center">
        <?php
        $category = get_the_category($kproduct['id']); 
        ?>
        <a href="<?php echo site_url('/category/') . $category[0]->slug; ?>" class="d-block"><?php
      echo $category[0]->cat_name;
      ?></a>
      </li>
      <li class="text-center"> <?php echo $kproduct['kaveh_custom']['date']; ?></li>
    </ul>
  </figure>
  <h2>
    <a href="<?php echo $kproduct['link'] ?>"> <?php echo $kproduct['title']['rendered']; ?> </a>
  </h2>
  <p class="mb-0"> <?php echo $kproduct['kaveh_custom']['excerpt']; ?></p>
</article>