Hi, I'm trying to use Infinite Scroll with WooCommerce to show products, but if I don't use infinite_scroll_query_args
to set an offset, they repeat the first set of products. If I use infinite_scroll_query_args
like that:
function jetpack_infinite_scroll_query_args( $args ) { $args['post_type'] = 'product'; $args['offset'] = 12; retu $args;
}
add_filter( 'infinite_scroll_query_args', 'jetpack_infinite_scroll_query_args' );
Defining an offset, they repeat always the same products in Infinte Scroll. How could I solve this?
Link: http://www.bethtokitaka.com.br/loja
Thanks!