
<?php
$args = array(
    'post_type' => 'partners',
    'posts_per_page' => 12,
    'no_found_rows' => true,
);
$loop = new WP_Query($args);
if ($loop->have_posts()) :
     ?>

    <!-- main slider  -->

        <section class="slider-partners-sec">
            <div class="container">


            <h2 class="sec-tit text-center">
                <?php _e('شركاؤنا', 'm7md') ?>
            </h2>
            <div class="partners-slider swiper">
                <div class="swiper-wrapper">
                    <?php while ($loop->have_posts()) : $loop->the_post(); ?>
                        <div class="swiper-slide" >
                            <div class="slider-partners">
                                <?php the_post_thumbnail('full', ['class' => 'img-fluid']); ?>
                            </div>
                        </div>
                    <?php endwhile; ?>
                </div>

            </div>
            </div>

        </section>

    <!-- //main slider   -->
<?php endif;
wp_reset_postdata(); ?>

