'content', 'render' => 'eventbrite_multi_infinite_scroll_render', ) ); } } add_action( 'after_setup_theme', 'eventbrite_multi_setup_infinite_scroll' ); if ( ! function_exists( 'eventbrite_multi_infinite_scroll_render' ) ) { /** * Callback for rendering posts during infinite scroll. */ function eventbrite_multi_infinite_scroll_render() { while ( have_posts() ) { the_post(); get_template_part( 'tmpl/post-loop' ); } } }