Created
April 28, 2014 13:46
-
-
Save nickburne/11372610 to your computer and use it in GitHub Desktop.
Customise the number of columns and products displayed per page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Display 24 products per page. Goes in functions.php | |
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi ~
Thank you for good code.
I have a question.
What is the path to the folder in the functions.php file?