<div class="container card_box_6">
  <div class="row">
        <?php if ($settings['title']): ?>
        <div class="col-12">
            <div class="head_card_box">
                <span class="head_card_title" style="color:<?php echo $settings['box_title']; ?>">
                    <?php echo $settings['title']; ?>
                </span>
                <?php if ($settings['title_show_more']): ?>
                    <a href="<?php echo $settings['website_link']['url']; ?>" class="head_card_more" style="color:<?php echo $settings['box_title_redmor']; ?>">
                        <?php echo $settings['title_show_more']; ?>
                        <i class="fal fa-arrow-left"></i>
                    </a>
                <?php endif; ?>
            </div>
        </div>
        <?php endif; ?>
        <?php
        while ($all_posts->have_posts()) :
        $all_posts->the_post(); ?>
        <div class="col-12 col-xl-3 col-md-3 col-sm-12 col-xs-12 right">
            <article class="article-text-box">
            <h3 class="article__category">
            <?php
                $category = get_the_category();
                echo $category[0]->cat_name;
            ?>
            </h3>
            <a href="<?php the_permalink(); ?>"><h2 class="article__title"><?php the_title(); ?></h2></a>
            <?php  echo '<p class="article__excerpt">' . get_the_excerpt() . '</p>' ;?>
        </article>
        </div>
    <?php endwhile; ?>
</div>