<?php
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly.
}
?>
    <div class="blog_grid_gap ezd-grid ezd-grid-cols-12">
        <?php
        if ($post_query->have_posts()) {
            while ($post_query->have_posts()) {
                $post_query->the_post();
                ?>
                <div class="ezd-lg-col-<?php echo esc_attr($column_grid); ?> ezd-sm-col-6 blog-grid">
                    <div class="blog-meta-one">
                        <figure class="post-img m0">
                            <a href="<?php the_permalink(); ?>" class="img"><?php the_post_thumbnail(); ?></a>
                        </figure>
                        <div class="post-data">
                            <a href="<?php echo esc_url(spel_get_first_taxonomy_link()); ?>" class="tags"><?php echo esc_html( spel_get_first_taxonomy() ); ?></a>
                            <a class="blog-tow-title" href="<?php the_permalink(); ?>">
                                <h2 class="tran3s blog-title"><?php echo esc_html( spel_get_title_length($settings, 'title_length') ) ?></h2>
                            </a>
                            <?php spel_get_post_author_name(); ?>
                        </div>
                    </div>
                </div>
                <?php
            }
            wp_reset_postdata();
        }
        ?>
    </div>

<?php
if ('yes' === $settings['pagination_switcher']) {
    spel_pagination($post_query, 'spel-pagination spel-pl-0 spel-mt-48 ');
}
?>