Skip to content

Instantly share code, notes, and snippets.

@mikemcalister
Created January 13, 2016 22:48
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 mikemcalister/4caf1026f2e4d25687e0 to your computer and use it in GitHub Desktop.
Save mikemcalister/4caf1026f2e4d25687e0 to your computer and use it in GitHub Desktop.
/*
* Change the posts_per_page Infinite Scroll setting from 10 to 20
*/
function theme_infinite_scroll_settings( $args ) {
if ( is_array( $args ) )
$args['posts_per_page'] = 20;
return $args;
}
add_filter( 'infinite_scroll_settings', 'theme_infinite_scroll_settings' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment