Created
February 24, 2014 09:52
-
-
Save jameskoster/9184802 to your computer and use it in GitHub Desktop.
Sttiched - Change number of features displayed on the homepage
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( 'woo_template_features_limit', 'jk_change_features_homepage' ); | |
function jk_change_features_homepage( $features_limit ) { | |
if ( is_home() ) { | |
$features_limit = 4; // Display 4 features | |
} | |
return $features_limit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment