Skip to content

Instantly share code, notes, and snippets.

@juanfra
Created February 3, 2015 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanfra/c4dd6ee3aca27231cf53 to your computer and use it in GitHub Desktop.
Save juanfra/c4dd6ee3aca27231cf53 to your computer and use it in GitHub Desktop.
How to change the amount of services on the home page.
<?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