На странице магазина выводятся один и тот же товар!
Как это исправить?
<?php get_header( 'shop' ); ?>
<?php do_action( 'woocommerce_before_main_content' ); ?>
<div class="container">
<?php
/**
* Хлебные крошки Yoast
*/
if ( function_exists( 'yoast_breadcrumb' ) ) :
yoast_breadcrumb( '<section class="breadcrumbs">', '</section>' );
endif;
?>
<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
<h1 class="has-text-align-center"><?php woocommerce_page_title(); ?></h1>
<?php endif; ?>
<?php
/**
* Hook: woocommerce_archive_description.
*
* @hooked woocommerce_taxonomy_archive_description - 10
* @hooked woocommerce_product_archive_description - 10
*/
do_action( 'woocommerce_archive_description' ); ?>
<?php
if ( woocommerce_product_loop() ) {
do_action( 'woocommerce_before_shop_loop' );
woocommerce_product_loop_start();
if ( wc_get_loop_prop( 'total' ) ) {
while ( have_posts() ) {
the_post();
do_action( 'woocommerce_shop_loop' );
wc_get_template_part( 'content', 'product' );
}
}
woocommerce_product_loop_end();
do_action( 'woocommerce_after_shop_loop' );
} else {
do_action( 'woocommerce_no_products_found' );
}
?>
</div>
<?php get_footer( 'shop' ); ?>