Created
June 26, 2015 04:10
-
-
Save spraveenitpro/6e186eb63dafb6475569 to your computer and use it in GitHub Desktop.
Change the number of Products per page to 12
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
//change the number of Products per page to 12 | |
add_filter( 'loop_shop_per_page', 'change_number_of_products', 20, 1); | |
function change_number_of_products( $cols ) { | |
return 12; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment