Show all products on page
-
I have been trying to set up my pages using Woocommerce to display all the products on a page rather than show 12 at a time.
The solution to add:
// Display 24 products per page. Goes in functions.php
add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 24;’ ), 20 );to the theme’s function.php page doesn’t seem to work for me – does it need to go anywhere in particular in that file?
Also saw a solution about changing the number of posts shown in a blog in the settings > readings section, but that doesn’t work either.
If anyone could help me get this sorted it would be much appreciated, as I have a client who is adamant that the pages need to display all products without any pagination.
Many thanks.
- The topic ‘Show all products on page’ is closed to new replies.