Support » Plugins and Hacks » WordPress Popular Posts » [Plugin: WordPress Popular Posts] All-Time Stats gone solution

  • Resolved RummiOnTour

    (@rummiontour)


    Hi to all and especially Hector. You did a great job, but the problem with the All-Time stats comes when you add the views, what nearly everone will do. Anyone who dares to change the php file 😉 here are the lines. It is about the $fields section for the sql statement:

    if ( $instance['stats_tag']['views'] || ($sortby != 'comment_count') ) {
    if ( $instance['range'] == 'all') {
       $fields .= "$table.pageviews AS 'pageviews' ";
    				} else {

    you have to activate this, otherwise the statement would sum the posts in the cache database, which is not joined.
    And do not forget to add a second } at the end the if section.

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress Popular Posts] All-Time Stats gone solution’ is closed to new replies.