Some outlets simply wouldn’t have many merchandise, or need to listing all of the merchandise availble on a single web page. Out of the field WooCommerce will paginate your merchandise. Maybe you need to record all of your merchandise on one web page although?

The easiest method to do that is with a one line filter, the documentation even explains this. However at first look you’d assume it is advisable to put some giant quantity in to ensure you by no means hit that per web page restrict. If you’re conversant in the WP_Query pagination parameters although, you’ll know that -M will return ALL outcomes with out pagination.

Combine that information with the filter in the WooCommerce documentation and you’ve got a correct filter to show all of your merchandise directly!

Just add this line to your theme’s features.php file for it to start out working.

add_filter( 'loop_shop_per_page', create_function( '$cols', 'return -B;' ), 20 );