Title: Duplicate post return from stats_get_csv
Last modified: January 8, 2020

---

# Duplicate post return from stats_get_csv

 *  Resolved [Ajay Ghaghretiya](https://wordpress.org/support/users/ajayghaghretiya1/)
 * (@ajayghaghretiya1)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/duplicate-post-return-from-stats_get_csv/)
 * 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 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [KokkieH](https://wordpress.org/support/users/kokkieh/)
 * (@kokkieh)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/duplicate-post-return-from-stats_get_csv/#post-12303327)
 * Hi there,
 * We’re going to need a bit more information to be able to help with this.
 * Is that custom code you’ve added to the site, and if so, what do you expect it
   to do? Note that we’re not able to provide support with custom code beyond limited
   help with snippets already published on our support page.
 * And can you share a link to your site? If you don’t want to share that publicly,
   you can also open a support ticket at [https://jetpack.com/contact-support/?rel=support](https://jetpack.com/contact-support/?rel=support)
 *  Thread Starter [Ajay Ghaghretiya](https://wordpress.org/support/users/ajayghaghretiya1/)
 * (@ajayghaghretiya1)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/duplicate-post-return-from-stats_get_csv/#post-12308048)
 * Hi [@kokkieh](https://wordpress.org/support/users/kokkieh/)
 * Thanks for your response.
 * No, we have not done any custom code for this method stats_get_csv. We just call
   it to get pageview stats. Our site is managed by the WordPress VIP Server where
   we are unable to access Jetpack directly.
 * Check the screenshot: [https://drive.google.com/file/d/1cKCvuK4Dggf4EXKHwGVvtq8ZUKt23p_S/view](https://drive.google.com/file/d/1cKCvuK4Dggf4EXKHwGVvtq8ZUKt23p_S/view)
 * Site: [https://sneakernews.com](https://sneakernews.com)
 * We think issue is occurring randomly.
 * Regards,
    Ajay
 *  Plugin Support [KokkieH](https://wordpress.org/support/users/kokkieh/)
 * (@kokkieh)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/duplicate-post-return-from-stats_get_csv/#post-12308877)
 * If your site is on WordPress.com VIP hosting, then please contact their support
   directly for help with this via the support link in your site’s dashboard. They’re
   much better able to help you with any issues on your site.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Duplicate post return from stats_get_csv’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [postviews](https://wordpress.org/support/topic-tag/postviews/)
 * [stats_get_csv](https://wordpress.org/support/topic-tag/stats_get_csv/)

 * 3 replies
 * 2 participants
 * Last reply from: [KokkieH](https://wordpress.org/support/users/kokkieh/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/duplicate-post-return-from-stats_get_csv/#post-12308877)
 * Status: resolved