Hello!
global $product, $woocommerce_loop; if ( empty( $woocommerce_loop['loop'] ) ) { $woocommerce_loop['loop'] = 0; } if ( ! $product || ! $product->is_visible() ) { return; } $woocommerce_loop['loop']++; $shop_style = yp_opts('shop_style')=='row'?'row':'grid'; ?> <div <?php post_class( $shop_style=='grid'?'item col-lg-4':'' ); ?>> <?php if($shop_style == 'grid') : ?> <div class="game-card" style="background-image: url(<?php the_field('game-card-fon');?>);"></div> </div> There is such a piece of code, it displays a list of all products, how to make it so that after every 6 products, another div appears with a picture for example?