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