WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostViews
Leaks Count on Next Post - Custom Post Types (5 posts)

  1. midwestkel
    Member
    Posted 3 years ago #

    I have custom post types set up and using WP-PostViews. The plugin works just fine but I have noticed that the next post in that post type gets a higher count also, they are of course false views after verifying with analytics. It's like for every 5 actual views the next article gets 1 false view.

    The plugin stores the view count in the post meta.

    I trying to see if anyone has run into this problem and if there is a fix.

  2. Lester Chan
    Member
    Plugin Author

    Posted 3 years ago #

    I check postviews code, it only invokes the count code when wp_head() action is being executed which is on every page load.

    On every page load, it checks whether it is a post revision and if it is not, it checks whether is it on a single page or a page before it counts. Are you able to reproduce this on a fresh install of WP with next post?

  3. midwestkel
    Member
    Posted 3 years ago #

    Lester, Thanks for getting back to me so quick. It's not doing it on a fresh install and when I test it out the same way on the site it's not doing it.

    When it's doing it is when there are hundreds of people hitting that article at the same time then it starts leaking over.

  4. Lester Chan
    Member
    Plugin Author

    Posted 3 years ago #

    unfortunately i need to reproduce this before I know if that is a problem, because the code is very straightforward.

  5. midwestkel
    Member
    Posted 3 years ago #

    How can I help to reproduce it for you? Like I said it's with custom posts types that I have the issue, could it be the plugin I use that's causing it? Because it's only happening for the next post in that custom post type and not just the next post.

    This is the plugin: http://wordpress.org/extend/plugins/cms-press/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic