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

  • Resolved Ajay Ghaghretiya

    (@ajayghaghretiya1)


    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

    (@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 https://jetpack.com/contact-support/?rel=support

    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: https://drive.google.com/file/d/1cKCvuK4Dggf4EXKHwGVvtq8ZUKt23p_S/view

    Site: https://sneakernews.com

    We think issue is occurring randomly.

    Regards,
    Ajay

    Plugin Support KokkieH

    (@kokkieh)

    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.