Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Customise the number of columns and products displayed per page
// Display 24 products per page. Goes in functions.php
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );

This comment has been minimized.

Copy link

Jumpnwow commented Apr 26, 2015

Hi ~
Thank you for good code.
I have a question.
What is the path to the folder in the functions.php file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.