Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Duplicate post return from stats_get_csv

$
0
0

Replies: 0

Hello Team,

We are facing the issue with the function stats_get_csv. It returns the duplicate post from the function for the postviews.

The issue is showing randomly. So we are unable to track from the code. It would be nice if you can let us know something about to fix the issue.

Here is the code we have for getting the postviews.

if ( function_exists( 'stats_get_csv' ) ) {
			$popular                                          = stats_get_csv( 'postviews', array( 'days'  => 2,
			                                                                                       'limit' => 20
			) );

Thanks in advanced..!!


Viewing all articles
Browse latest Browse all 59525

Trending Articles