public/wordpress/wp-content/themes/puro/inc/jetpack.php
/**
 * Custom render function for Infinite Scroll.
 */
Custom render function for Infinite Scroll.
Custom render function for Infinite Scroll .
function puro_infinite_scroll_render() {
	if ( function_exists( 'is_woocommerce' ) && ( is_shop() || is_woocommerce() ) ) {
		echo '<ul class="products">';
		while ( have_posts() ) {
			the_post();
			wc_get_template_part( 'content', 'product' );
		}
		echo '</ul>';
	} else {	
		while ( have_posts() ) {
			the_post();
			if ( is_search() ) :
				get_template_part( 'content', 'search' );
			else :
				get_template_part( 'content', get_post_format() );
			endif;
		}
	}
}
function puro_infinite_scroll_render ( ) { if ( function_exists ( 'is_woocommerce' ) && ( is_shop ( ) || is_woocommerce ( ) ) ) { echo '<ul class="products">' ; while ( have_posts ( ) ) { the_post ( ) ; wc_get_template_part ( 'content' , 'product' ) ; } echo '</ul>' ; } else { while ( have_posts ( ) ) { the_post ( ) ; if ( is_search ( ) ) : get_template_part ( 'content' , 'search' ) ; else : get_template_part ( 'content' , get_post_format ( ) ) ; endif ; } } }
Custom render function for Infinite Scroll.
Custom render function for Infinite Scroll .