Created
January 13, 2016 23:05
-
-
Save mikemcalister/7040874259161a5c7c9a to your computer and use it in GitHub Desktop.
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
/** | |
* Add theme support for Infinite Scroll | |
*/ | |
function theme_infinite_scroll_setup() { | |
add_theme_support( 'infinite-scroll', array( | |
'container' => 'post-wrapper', | |
'render' => 'theme_render_infinite_posts', | |
'type' => 'scroll' | |
) ); | |
} | |
add_action( 'after_setup_theme', 'theme_infinite_scroll_setup' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment