• I noticed that paginated posts are getting bumped up the popular posts list very easily. If there’s a post with 10 pages and someone clicks through all of them then that counts as 10 views. I’m not sure what the best solution would be, but I’m trying to get this fixed for my site so each visitor will only count as one view per post.

    http://wordpress.org/plugins/wordpress-popular-posts/

Viewing 1 replies (of 1 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi dbirider,

    Well, this is a complex one. Thing is that yours is an atypical case: by default, WordPress posts and pages are single paged – there’s no pagination (unless you use the <!--nextpage--> quicktag in your content) so the plugin never checks for this before updating the views count.

    Since is_paged() doesn’t work on posts and pages, one possible solution would be to check for the paged variable on the $wp_query object: if it’s set and we’re on a post / page, don’t update the views count. This is just an idea though, can’t tell for sure without testing.

Viewing 1 replies (of 1 total)
  • The topic ‘Paginated posts are getting a view for each page.’ is closed to new replies.