If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Hey folks. How would I go about changing the Popular posts to display popular posts only from the past 30 days, instead of all time?
The easiest solution would be to use a date query: http://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters which is supported since WP3.8.x. Open up wp-content/themes/sentence/framework/php/class-framework-widgets.php and replace:
avia_get_post_list( array( 'orderby'=> 'comment_count', 'posts_per_page'=> $posts, 'date_query' => array( array( 'column' => 'post_date_gmt', 'before' => '1 month ago', ) ) ));
You must be logged in to reply to this topic.