'content', 'footer' => 'wrapper', 'render' => 'steira_infinite_scroll_render', ) ); } add_action( 'after_setup_theme', 'steira_infinite_scroll_init' ); /** * Set the code to be rendered on for calling posts, * hooked to template parts when possible. * * Note: must define a loop. */ function steira_infinite_scroll_render() { while ( have_posts() ) : the_post(); ?>