WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
ERROR: Time range: 30 days, Sort posts by: comments (1 post)

  1. Grávuj Miklós Henrich
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Grávuj Miklós Henrich
  • This topic is not resolved
  • WordPress version: 3.2