<?php $kproduct = get_query_var('kproduct'); ?>
<article class="article-four">
  <figure class="position-relative mb-0">
    <img src="<?php echo $kproduct['kaveh_custom']['thumbnail_url'] ?>" alt="<?php echo $kproduct['title']['rendered']; ?>" class="d-block w-100" />
    <h2 class="position-relative text-nowrap overflow-hidden">
      <a href="<?php echo $kproduct['link'] ?>"> <?php echo $kproduct['title']['rendered']; ?> </a>
    </h2>
  </figure>
  <div class="date-view d-flex align-items-center justify-content-between">
    <span> <?php echo $kproduct['kaveh_custom']['date']; ?> </span>
    <span>
    <?php
    $category = get_the_category($kproduct['id']); 
    ?>
      <b> 
        دسته بندی: </b>
        <a href="<?php echo site_url('/category/') . $category[0]->slug; ?>">
      <?php
      echo $category[0]->cat_name;
      ?>
      </a>
    </span>
  </div>
</article>