<?php $kproduct = get_query_var('kproduct'); ?>
<article class="article-seven">
<figure class="mb-0 position-relative">
  <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" />
  </a>
</figure>
<div class="content">
  <div class="info position-relative">
    <h2 class="text-truncate">
      <a href="<?php echo $kproduct['link'] ?>"><?php echo $kproduct['title']['rendered']; ?></a>
    </h2>
    <p><?php echo $kproduct['kaveh_custom']['excerpt']; ?> </p>
  </div>
  <ul class="d-flex align-items-center justify-content-between">
    <li><?php echo $kproduct['kaveh_custom']['date']; ?></li>
    <?php
        $category = get_the_category($kproduct['id']); 
        ?>
        <a href="<?php echo site_url('/category/') . $category[0]->slug; ?>"> <li> <b> دسته بندی: </b> <?php echo $category[0]->cat_name; ?> </li></a></ul>
</div>
</article>