'content', 'footer_widgets' => array( 'footer_left', 'footer_center', 'footer_right' ), 'render' => 'titan_infinite_scroll_render' ) ); } add_action( 'after_setup_theme', 'titan_jetpack_setup' ); /** * Define the code that is used to render the posts added by Infinite Scroll. * * Includes the whole loop. Used to include the correct template part for the Portfolio CPT. */ function titan_infinite_scroll_render() { while( have_posts() ) { the_post(); if ( is_archive() ) { get_template_part( 'content', 'archive' ); } else { get_template_part( 'content', get_post_format() ); } } }