Support » Plugin: Jetpack - WP Security, Backup, Speed, & Growth » Duplicate post return from stats_get_csv

  • Resolved Ajay Ghaghretiya


    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


    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

    Hi @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:


    We think issue is occurring randomly.


    Plugin Support KokkieH


    If your site is on 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.