<?php $kproduct = get_query_var('kproduct'); ?>
<div class="article-two">
<div class="image">
  <a href="<?php echo $kproduct['link'] ?>">
    <img src="<?php echo $kproduct['kaveh_custom']['thumbnail_url'] ?>" alt="<?php echo $kproduct['title']['rendered']; ?>" class="d-block w-100" />
  </a>
</div>
<div class="date-view d-flex align-items-center justify-content-between">
  <span> <?php echo $kproduct['kaveh_custom']['date']; ?> </span>
  <?php
  $category = get_the_category($kproduct['id']); 
  ?>
  <span>
    <i class="fst-normal"> دسته بندی: </i>
    <?php
    echo $category[0]->cat_name;
    ?>
  </span>
</div>
<h2>
  <a href="<?php echo $kproduct['link'] ?>"> <?php echo $kproduct['title']['rendered']; ?> </a>
</h2>
<p> <?php echo $kproduct['kaveh_custom']['excerpt']; ?> </p>
</div>