我有这张图片轮播。当前,幻灯片可以正确运行(有4个),但是一旦完成这4个徽标,滑块就会变空。
如何重新将其重新回到第一张幻灯片?您可以在主页上查看滑块:fintechdistrict.com
<h6>OUR PARTNERS:</h6>
<?php
$incrementalvartwo = 20;
$args = array(
'numberposts=1',
'communitypartners',
'post_type' => 'custom_post_commun',
'posts_per_page' => 7,
'orderby' => 'rand',
'category_name' => 'communitypartners');
$posts = get_posts($args);
foreach($posts as $post): ?>
<?php $incrementalvartwo = $incrementalvartwo + 1; ?>
<div class="c-homepage-single-com-partner" id="<?php echo $incrementalvartwo; ?>">
<!--<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >-->
<?php the_post_thumbnail('post-thumbnail', ['style' => 'max-height: 9vw;' ]); ?>
<!--</a>-->
<div class="clearfix"></div>
</div>
<div class="post-text">
<?php the_excerpt(); ?>
</div>
<?php endforeach; ?>
<?php wp_reset_postdata();?>
</article>