-
-
Save juanfra/42950f20cb22908423ed to your computer and use it in GitHub Desktop.
Modify the amount of InfoBoxes to display on the home 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
<?php | |
//* Do NOT include the opening php tag | |
// filter the amount of info boxes items displayed on the home page | |
function nice_home_infobox_limit( $limit ){ | |
// -1 = all, 1=1, 2=2, etc. | |
$limit = -1; | |
return $limit; | |
} | |
add_filter( 'nice_home_infobox_posts', 'nice_home_infobox_limit' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment