Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //adds Jetpack Infinite Scroll Module support for search queries and pages
- function tweakjp_custom_is_support() {
- $supported = current_theme_supports( 'infinite-scroll' ) && ( is_home() || is_archive() || is_search() || is_page( 'new' ) );
- return $supported;
- }
- add_filter( 'infinite_scroll_archive_supported', 'tweakjp_custom_is_support' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement