Created
November 8, 2017 06:25
-
-
Save RiaanKnoetze/b85ef03399a83a25be38c8c2aa2cec23 to your computer and use it in GitHub Desktop.
Change the number of categories and the order on the homepage when using Storefront
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
add_filter('storefront_product_categories_shortcode_args','custom_storefront_category_per_page' ); | |
// Category Products | |
function custom_storefront_category_per_page( $args ) { | |
$args['number'] = 10; | |
$args['orderby'] = 'name'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment