[WC] Change the number of subcategories in category page

Add the following snippet in your functions.php file located under wp-content/themes/[theme]/

 

function sz_woocommerce_product_subcategories_args( $args ) {
    $args['number'] = 1;

    return $args;
}
add_filter( 'woocommerce_product_subcategories_args', 'sz_woocommerce_product_subcategories_args' );

 

remember to change the value for number argument.

This page doesn't include pagination for subcategories, only for products

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk