WooCommerce: Change number of products that are displayed per page (shop page)

Date: 
5. November 2021
Author: 
mbs
Category: 

Add this code snippet to your favorite code operator, and change $count = 8 according to your settings

add_filter( 'loop_shop_per_page', 'update_shops_per_page', 20 );

function update_shops_per_page( $count ) {
 $count = 8;
  return $count;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

© Copyright 2007-2024 mbsTECH.dk 
by Michael Bay Sørensen
WebGPT.ninja
Build with
and 
Oxygenbuilder
I'm using 
Ahoy