• Hi,

    When I’m selecting the time range to 30 days and the posts to be sorted by comments, it shows me the posts by all the time.

    I think there is a problem in line 513:

    $range = $table."cache.day >= '".gmdate("Y-m-d")."' - INTERVAL 30 DAY";

    and line 609:

    $mostpopular = $wpdb->get_results("SELECT $wpdb->posts.ID, $wpdb->posts.post_title $fields FROM $wpdb->posts $join WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_password = '' AND $range $force_pv $nopages $exclude GROUP BY $wpdb->posts.ID ORDER BY $sortby DESC LIMIT " . $instance['limit'] . "");

    But I don’t know how to solve this.

    Any ideas?

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

  • The topic ‘[Plugin: WordPress Popular Posts] ERROR: Time range: 30 days, Sort posts by: comments’ is closed to new replies.