Sindbad~EG File Manager

Current Path : /home/atdotid/www/wp-content/themes/aturtoko/
Upload File :
Current File : //home/atdotid/www/wp-content/themes/aturtoko/category.php

<?php get_header(); ?>

<section class="section-3">
  <div class="container pt-5">
    <div class="header-blog">
      <h1>Kategori : <?php single_cat_title('', true); ?></h1>
    </div>
    <div class="row">
      <div class="col-md-9">
        <div class="product">
          <div class="cards1 text-center">
            <div class="d-flex flex-column flex-lg-row justify-content-between" style="gap: 30px;">

              <div class="row">
                <?php $newsQuery = new WP_Query(array('category_name' => single_cat_title('', false), 'posts_per_page' => '10'));
                if ($newsQuery->have_posts()) : ?>
                  <?php while ($newsQuery->have_posts()) : $newsQuery->the_post(); ?>
                    <div class="col-md-6 my-3">
                      <div class="card1 h-100">
                        <div class="card1-body d-flex flex-column justify-content-between">
                          <div class="cobaProduct">
                            <?php if (has_post_thumbnail()) : ?>
                              <?php the_post_thumbnail(); ?>
                            <?php else : ?>
                              <img src="<?php echo get_template_directory_uri(); ?>/assets/img/bg-contoh.jpg" alt="AturToko" title="AturToko" />
                            <?php endif ?>
                          </div>
                          <div class="card1-title">
                            <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                          </div>
                          <div class="card1-text">
                          </div>
                          <?php the_excerpt(); ?>
                        </div>
                      </div>
                    </div>

                  <?php endwhile ?>
                <?php else : ?>
                  <p><?php __('No Post Found') ?></p>
                <?php endif ?>


              </div>

            </div>
          </div>
        </div>
        <?php wpbeginner_numeric_posts_nav(); ?>
      </div>

      <div class="col-md-3">
        <div class="border-left p-3">
          <div class="border-bottom">
            <div class="sidebar-box mb-4">
              <form role="search" action="<?php echo site_url('/'); ?>" method="get" id="searchform">
                <div class="form-group">
                  <input type="text" name="s" class="form-control" placeholder="Search" autocomplate="off">
                </div>
              </form>
            </div>
          </div>

          <div class="side-custom pt-2">
            <?php if (is_active_sidebar('sidebar')) : ?>
              <?php dynamic_sidebar('sidebar'); ?>
            <?php endif ?>
          </div>

        </div>

      </div>
    </div>
  </div>
</section>

<?php get_footer(); ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists