Custom queries and how to avoid Jetpack Infinite Scroll to duplicate post
-
Hi,
I have a home page with some secondary queries. The queried post are then excluded from the main query of the page in order to avoid duplication of post with this function
$args = array ( 'posts_per_page' => 6, 'post__not_in'=>$list_ID_do_not_duplicate, ); query_posts($args);
But when Infinite Scroll loads more post, it’ seems that the pagination is broken and some post appears duplicated. I think that IS won’t read that variable $list_ID_do_not_duplicate .
Is there a way to pass this variable also to the query used by Infinite Scroll?
Thank you so much,
LG
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Custom queries and how to avoid Jetpack Infinite Scroll to duplicate post’ is closed to new replies.