'recent-posts', 'type' => 'click', 'wrapper' => false, 'render' => 'monograph_infinite_scroll_render', 'footer' => false, ) ); add_theme_support( 'site-logo', array( 'size' => 'full' ) ); } // end function monograph_jetpack_setup add_action( 'after_setup_theme', 'monograph_jetpack_setup' ); /** * Custom render function for Infinite Scroll. */ function monograph_infinite_scroll_render() { while ( have_posts() ) { the_post(); get_template_part( 'template-parts/content' ); } } // end function monograph_infinite_scroll_render function monograph_jetpack_infinite_scroll_js_settings( $settings ) { $settings['text'] = __( 'Load more posts', 'monograph' ); return $settings; } add_filter( 'infinite_scroll_js_settings', 'monograph_jetpack_infinite_scroll_js_settings' );