Skip to content

Instantly share code, notes, and snippets.

@blobaugh
Created October 29, 2013 21:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blobaugh/7223022 to your computer and use it in GitHub Desktop.
Save blobaugh/7223022 to your computer and use it in GitHub Desktop.
Add additional support for Infinite Scroll in Jetpack
function tweakjp_custom_is_support() {
$supported = current_theme_supports( 'infinite-scroll' ) && ( is_home() || is_archive() || is_search() );
return $supported;
}
add_filter( 'infinite_scroll_archive_supported', 'tweakjp_custom_is_support' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment