    <div class="content widt-sidbar_3 main-content" style="margin-top:1rem;">
        <div class="col-12 ">
            <div class="row middle">
                <?php get_sidebar('page-left'); ?>
                <div class="col-sm-12 col-md-8 col-lg-8 col-xl-6" style="padding: 0;">
                    <div class="title-category-header">
                        <h1 class="cb-module-title"><?php echo $settings['title']; ?></h1>
                        <div class="taxonomy-description"><?php echo $settings['title_more']; ?></div>
                    </div>
                    <?php
                    while ($query->have_posts()) :
                        $query->the_post(); ?>
                        <article class=" main solid-home home-col">
                            <div class="row">
                                <div class="col-4 col-sm-4 col-xs-4">
                                    <a href="<?php the_permalink(); ?>">

                                        <?php
                                        if (has_post_thumbnail()) {
                                            the_post_thumbnail('medium', array('alt' => '' . get_the_title(), 'title' => '' . get_the_title() . ''));
                                        } else { ?>
                                            <img src="<?php bloginfo('template_url'); ?>/assets/images/thumb.gif" width="60" height="60" alt="<?php _e('Image not found', 'liosa'); ?>" title="<?php _e('Image not found', 'liosa'); ?>">
                                        <?php } ?>
                                    </a>
                                </div>
                                <div class="col-8 col-sm-8 col-xs-8">
                                    <h3>
                                        <a class="article_Title" href="<?php the_permalink(); ?>">
                                            <?php the_title(); ?>
                                        </a>
                                    </h3>
                                    <div class="post-meta-area">
                                        <a class="cursor-meta" href="<?php the_permalink(); ?>"><?php the_author(); ?></a>
                                        <a class="cms-post-recent" href=""><i class="fa fa-comments-o" aria-hidden="true"></i> <?php comments_number('0', '1', '%'); ?></a>
                                        <span><?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' پیش'; ?></span>
                                    </div>
                                    <div class="excerpt_article">
                                        <?php if ($settings !== 'yes') {
                                            if (empty($settings['grid_content_length'])) {
                                                the_excerpt();
                                            } else {
                                                echo wp_trim_words(get_the_excerpt(), $settings['grid_content_length']);
                                            }
                                        } ?>
                                    </div>
                                </div>
                            </div>
                        </article>
                    <?php endwhile;
                    // Pagination.
                    if (!empty($settings['grid_pagination'])) {
                    ?>
                        <div class="pagination">
                            <?php
                            $big = 999999999;
                            $totalpages = $query->max_num_pages;
                            $current = max(1, $paged);
                            $paginate_args = array(
                                'base'      => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
                                'format'    => '?paged=%#%',
                                'current'   => $current,
                                'total'     => $totalpages,
                                'show_all'  => false,
                                'end_size'  => 1,
                                'mid_size'  => 1,
                                'prev_next' => true,
                                'prev_text'          => __('<i class="fa fa-chevron-right" aria-hidden="true"></i>', 'twentyfifteen'),
                                'next_text'          => __('<i class="fa fa-chevron-left" aria-hidden="true"></i>', 'twentyfifteen'),
                                'screen_reader_text' => __('A')
                            );

                            $pagination = paginate_links($paginate_args);
                            ?>
                            <nav class="pagenumbers">
                                <?php echo $pagination; ?>
                            </nav>
                        </div>
                    <?php
                    }
                    wp_reset_postdata();
                    ?>
                </div>
                <?php get_sidebar('page'); ?>
            </div>
        </div>
    </div>