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

  1. Gravuj Miklos Henrich
    Posted 5 years ago #


    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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by Gravuj Miklos Henrich
  • This topic is not resolved
  • WordPress version: 3.2