如何从第一个博客页面以外的博客页面隐藏滑块?

How I can hide top slider in Wordpress form my 2,3,4... blog page with php? This is my script:

<section id="blog">
       <div class="owl-carousel">
          <?php $loop = new WP_Query(array('post_type' => 'post', 'posts_per_page' => -1, 'orderby'=> 'ASC')); ?> 
          <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
             <div class="recent-post">
                <div class="home-slider-img">
                    <?php echo the_post_thumbnail(); ?>
                </div> 
                <div class="feat-overlay">
                    <div class="feat-overlay-inner"> 
                        <div class="post-header">                     
                            <span class="cat"><?php the_category(', ') ?></span>
                            <h4><a href="<?php the_permalink(); ?>"><?php print get_the_title(); ?></a></h4>
                            <span class="date"><?php the_time('M j, Y') ?></span>
                            <p><a class="read-more" href="<?php print get_permalink($post->ID) ?>">Read More</a></p>
                        </div>      
                    </div>  
                </div>
            </div>
          <?php endwhile; ?>
       </div>
    </section>

The is_home() function should do what you want - https://developer.wordpress.org/reference/functions/is_home/

Just wrap your owl-carousel div in an if test to check if you're on the blog homepage like this:

<?php if (is_home()) { ?>
     <div class="owl-carousel">...</div>
<?php } ?>