I am trying to integrate infinite scroll on archieve page.But its not working.
This is the code used in function file.
function jetpack_infinite_scroll_init() {
add_theme_support( 'infinite-scroll', array(
'type' => 'scroll',
'footer_widgets' => false,
'container' => 'product-wrapper',
'render' => 'jetpack_infinite_scroll_render',
'posts_per_page' => get_option( 'posts_per_page' ),
'footer_callback' => 'no_jetpack_footer',
) );
}
add_action( ‘after_setup_theme’, ‘jetpack_infinite_scroll_init’ );
function jetpack_infinite_scroll_render() {
wc_get_template_part( ‘content’, ‘product’ );
}
Where is the missing point ?