WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WordPress Popular Posts] Show most popular of posts published this month

[Plugin: WordPress Popular Posts] Show most popular of posts published this month

Viewing 1 replies (of 1 total)
  • Yes it is 🙂

    Change query line 569 to:

    $mostpopular = $wpdb->get_results("SELECT $wpdb->posts.ID, $wpdb->posts.post_title $fields FROM $wpdb->posts LEFT JOIN $table ON $wpdb->posts.ID = $table.postid WHERE post_status = 'publish' AND post_password = '' AND DATE_SUB(CURDATE(),INTERVAL 30 DAY) < $table.last_viewed AND DATE_SUB(CURDATE(),INTERVAL 30 DAY) < $table.day AND pageviews > 0 $nopages GROUP BY postid ORDER BY $sortby DESC LIMIT " . $instance['limit'] . "");

    And set your widget range to all-time
    If you do that, make sure you’re using cache.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress Popular Posts] Show most popular of posts published this month’ is closed to new replies.
Skip to toolbar