'content', 'footer' => 'wrapper', ); // if the user is showing the double column posts layout on the front page. if ( isset( $options['sunspot_radio_buttons'] ) && 'double' == $options['sunspot_radio_buttons'] ) { $is_args['render'] = 'sunspot_infinite_scroll_render'; $is_args['posts_per_page'] = 6; } add_theme_support( 'infinite-scroll', $is_args ); } add_action( 'after_setup_theme', 'sunspot_infinite_scroll_init' ); /** * Custom infinite scroll render function, to allow IS for double column layout. */ function sunspot_infinite_scroll_render() { $count = 0; // Set up a variable to count the number of posts so that we can break them up into rows. $column_type = 'odd'; // Set up a variable to add a CSS class to the post columns. if ( have_posts() ) : ?>