Sindbad~EG File Manager

Current Path : /home/nicedoo/www/wp-content/themes/grocery-shopping/core/sections/
Upload File :
Current File : /home/nicedoo/www/wp-content/themes/grocery-shopping/core/sections/slider.php

<?php if ( get_theme_mod('grocery_shopping_blog_box_enable') ) : ?>

<?php $args = array(
  'post_type' => 'post',
  'post_status' => 'publish',
  'category_name' =>  get_theme_mod('grocery_shopping_blog_slide_category'),
  'posts_per_page' => get_theme_mod('grocery_shopping_blog_slide_number'),
); ?>

<div class="slider">
  <div class="owl-carousel">
    <?php $arr_posts = new WP_Query( $args );
    if ( $arr_posts->have_posts() ) :
      while ( $arr_posts->have_posts() ) :
        $arr_posts->the_post();
        ?>
        <div class="blog_inner_box">
          <?php
            if ( has_post_thumbnail() ) :
              the_post_thumbnail();
            endif;
          ?>
          <div class="blog_box pt-3 pt-md-0">
            <?php if ( get_theme_mod('grocery_shopping_slider_extra_text') ) : ?>
              <h4><?php echo esc_html( get_theme_mod('grocery_shopping_slider_extra_text' ) ); ?></h4>
            <?php endif; ?>
            <?php if ( get_theme_mod('grocery_shopping_title_unable_disable') ) : ?>
              <h3 class="my-3"><?php the_title(); ?></a></h3>
            <?php endif; ?>
            <p class="slider-text"><?php echo wp_trim_words( get_the_content(), get_theme_mod('grocery_shopping_post_excerpt_number',30) ); ?><p>
            <?php if ( get_theme_mod('grocery_shopping_button_unable_disable') ) : ?>
              <p class="slider-button mt-4">
                <a href="<?php echo esc_url(get_permalink($post->ID)); ?>"><?php esc_html_e('Shop Now','grocery-shopping'); ?></a>
              </p>
            <?php endif; ?>
          </div>
        </div>
      <?php
    endwhile;
    wp_reset_postdata();
    endif; ?>
  </div>
</div>

<?php endif; ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists