I am trying to integrate Jetpack Infinite Scroll into Zombie Apocalypse.
This is what I have so far:
/**
* Add theme support for infinite scroll
*
* @uses add_theme_support
* @action after_setup_theme
* @return null
*/
function zombie_infinite_scroll_init() {
add_theme_support( 'infinite-scroll', array(
'container' => 'content',
'render' => 'zombie_infinite_scroll_render',
'footer' => 'wrapper',
) );
}
add_action( 'init', 'zombie_infinite_scroll_init' );
***I’m not sure what to put for this part!!!
/**
* Set the code to be rendered on for calling posts,
* hooked to template parts when possible.
*
* Note: must define a loop.
*/
function zombie_infinite_scroll_render() {
get_template_part( 'loop' );
}