Change number of products per page

Paste the following code in your functions.php file.

Change “24” for your preferred value.

// Display 24 products per page. Goes in functions.php
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );