There is a WooCommerce store page that displays all categories and all products from these categories. You need to make the second and third page of the store with the withdrawal of other categories and products. The question is how? Found nothing in the documentation. The output occurs through the code.

<div class="shop_menu"> <div class="shop_menu-title">Меню</div> <div class="shop_menu-category"> <ul class="shop_menu-category_list clearfix"> <?php $taxonomy = 'product_cat'; $orderby = 'name'; $show_count = 0; $pad_counts = 0; $hierarchical = 1; $title = ''; $empty = 0; $args = array( 'taxonomy' => $taxonomy, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); $categories = get_categories( $args ); if( $categories ){ foreach( $categories as $cat ){ ?> <li><a href="<?php echo get_category_link($cat->cat_ID); ?>"><?php echo $cat->name; ?></a></li> <?php } }?> </ul> </div> </div> 

    1 answer 1

    The easiest way to make a product page is to use WooCommerce shortcodes . For example:

     [products limit="-1" columns="4" category="flowers, trees" cat_operator="OR"] 

    And the code that you gave in the question is no good. It is not for WooCommerce. And displays only a list of categories, not products.