Sindbad~EG File Manager
<?php get_header(); ?>
<section class="section-3">
<div class="container pt-5">
<div class="header-blog">
<h1>Blog Aturtoko</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
$args = array(
'posts_per_page' => 10,
'post_type' => 'post',
'post_status' => 'publish',
'orderby' => 'date',
'order' => 'DESC',
'paged' => $paged
);
$loop = new WP_Query($args);
if ($loop->have_posts()) {
// $newsQuery = new WP_Query('post_type=post','post_status=publish');
// if($newsQuery->have_posts()) :
while ($loop->have_posts()) : $loop->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="Ilustrasi 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;
} ?>
</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>
</section>
<?php get_footer(); ?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists