Created
July 29, 2012 20:34
-
-
Save ChromeOrange/3201696 to your computer and use it in GitHub Desktop.
Change number of products per page
This file contains hidden or 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
<?php | |
add_action( 'init', 'custom_ppp_filter' ); | |
function custom_ppp_filter() { | |
add_filter( 'loop_shop_per_page','custom_query_ppp_args' ); | |
} | |
// Posts Per Page Args | |
function custom_query_ppp_args() { | |
// Posts Per Page | |
return '10'; // Change this number to set how many products per page you would like | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment