• 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Lester Chan

    (@gamerz)

    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?

    Thread Starter midwestkel

    (@midwestkel)

    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.

    Plugin Author Lester Chan

    (@gamerz)

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

    Thread Starter midwestkel

    (@midwestkel)

    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Leaks Count on Next Post – Custom Post Types’ is closed to new replies.