-
-
Save juanfra/c4dd6ee3aca27231cf53 to your computer and use it in GitHub Desktop.
How to change the amount of services 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 service items displayed on the home page | |
function nice_home_services_per_page( $per_page ){ | |
// -1 = all, 1=1, 2=2, etc. | |
$per_page = -1; | |
return $per_page; | |
} | |
add_filter( 'nice_home_service_posts', 'nice_home_services_per_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment