Why Double Post Populer in Ifinite Scroll ?

Posted in: Newsmag
Post count: 13

I use populer post with jetpack plugin, and block setting filter by ‘popular (site wide) – jetpack + stats module’.
other trick Unique articles is enabled, but still couble post.
i try with code , my code is :

add_filter( 'infinite_scroll_query_args', 'jetpack_infinite_scroll_query_args' );
function jetpack_infinite_scroll_query_args( $args ) {
$args['order'] = 'DESC';

try{
$startPage = intval($_POST['query_args']['paged']);
if($startPage != 0) $startPage--;
$currentPage = ($args['paged'] + $startPage);

}catch(Exception $x){
$currentPage = $args['paged'];
}
$args['offset'] = $args['posts_per_page'] * $currentPage;
return $args;
}

but still couble post, how to fix it ?
this screenshot >> https://s18.postimg.org/5uw7l9v0p/10_12_2016_shot_16_42_31.png

  • This topic was modified 9 years by faris. Reason: insert code
Post count: 23312

Hello faris,

We will make some deeper investigations in this regard and if it is found to be a problem, we will fix it as soon as possible and we will include this in our future updates.

Thanks for the message!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.