Reputation: 9
I have set the 9 products to show per page. On the first few pages, it shows correctly but after a couple of pages it reduces the number of products per page, it shows 7, 4, 6 or 3 on one page. https://cheezainetc.com/shop/ check out the pages after 50 What can be the issue there?
Upvotes: 0
Views: 2563
Reputation: 138
try this, paste in your functions.php
add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );
function new_loop_shop_per_page( $cols ) {
// $cols contains the current number of products per page based on the value stored on Options -> Reading
// Return the number of products you wanna show per page.
$cols = 9;
return $cols;
}
If problem is still there, change your theme to wordpress default 2016 theme (more compatible then other wp free themes), and check. It Can be theme compatible issue with newer version of wp and woocommerce.
Upvotes: 0
Reputation: 721
Please deactivate all plugins one by one to check which one is causing this issue.
Or
just change the no. of products to display in a row in Woocommerce Customizer
That might solve the problem
Upvotes: 1