Home › Forums › Support › How to set up number of products on WC Shop Page? › Reply To: How to set up number of products on WC Shop Page?
July 16, 2016 at 4:38 am
#210270
Jamal
Hi Dmitry,
Did you want to change number of products per row? That’s what the codes/plugin above seem to do. Myself i use this, might be similar to what you have but it works for me
/* ===Override theme default specification for product # per row===*/
function loop_columns() {
return 2; // 2 products per row
}
add_filter('loop_shop_columns', 'loop_columns', 999);
If you instead wanted to change number of products shown on the shop page, i use the code below. You would want to change “return 10” to what suits you best.
/*===Change number of products displayed on category page to 10*/
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 10;' ), 20 );
https://docs.woothemes.com/document/change-number-of-products-displayed-per-page/