WordPress Popular Posts
Post counts gone haywire in past few days (8 posts)

  1. Robin
    Posted 3 years ago #

    I noticed about three days ago that the 'popular' post counts on our site have gone haywire ... only one of the most recent popular posts is rating, and several old pages which get few views are showing up.


    In the WPP widget, we had "Most read, past 7 days", and this also has gone haywire ... ie, articles with hundreds of views not showing up, in favour of older pages (not posts). I've had to replace this temporarily with "Most read, past 30 days" to get a halfway sensible count of posts.

    On reading through this forum I went back to versions 2.3.2, 2.3.3. and 2.3.4 and tested in turn, to no avail. Deleted cache also.

    It's worked fine up til a few days ago ... any suggestions??

    thanks ...


  2. teyruu
    Posted 3 years ago #

    I have the same problem...

    I noticed that I used to have the admin-ajax.php ajax script appearing on the post, but now its gone with the current updates.

    Was the call to admin-ajax.php specifically removed?

  3. teyruu
    Posted 3 years ago #

    I think I may have found the problem: on Tools, Data Tools, Ajaxify widget - it should be enabled on w3total cache.

    But if you enable it then widgets will be loaded via ajax as well as the counting script.

    I had trouble with this since I'm using jquery on the output of the popular list. So I just disabled Ajaxify and just placed this on the single posts:

    $nonce = wp_create_nonce('wpp-token');
    global $wp_query;
    $id1 = $wp_query->post->ID;
    <script type="text/javascript">
        /* <![CDATA[ */
    	jQuery.post('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'wpp_update', token: '<?php echo $nonce; ?>', id: <?php echo $id1; ?>}, function(data){/*alert(data);*/});
        /* ]]> */
  4. Robin
    Posted 3 years ago #

    I am not using that tool, so that's not going to work for me!

    I've had to disable both instances of Popular Posts appearing on the site.

    Very frustrating.

  5. teyruu
    Posted 3 years ago #

    What caching plugin are you using Robin?

  6. Robin
    Posted 3 years ago #

    We have WP Super Cache.

  7. teyruu
    Posted 3 years ago #

    Ah I think the plugin is really broken even with the changes I made above. I hope it would be resolved soon.

  8. Robin
    Posted 3 years ago #

    I think you are right ... I am changing to another, trying out nrelate for now but may go on to something else that can be customised a little easier.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.