Alright, here’s what you need to do:
1. Change your shortcode to [wpp range=weekly order_by=views stats_comments=0 thumbnail_height=98 stats_views=1 post_type=post]
(this is to order the posts by weekly views).
2. Open wordpress-popular-posts.php, and around line 1156 you’ll find this block of code:
// views
if ( $instance['stats_tag']['views'] ) {
if ($instance['order_by'] == 'avg') {
$views_text = sprintf(
_n('1 view per day', '%s views per day', intval($pageviews), 'wordpress-popular-posts'),
number_format_i18n($pageviews, 2)
);
}
else {
$views_text = sprintf(
_n('1 view', '%s views', intval($pageviews), 'wordpress-popular-posts'),
number_format_i18n($pageviews)
);
}
$stats .= ($stats == "") ? "<span class=\"wpp-views\">" . $views_text . "</span>" : " | <span class=\"wpp-views\">" . $views_text . "</span>";
}
3. Change it to:
// views
if ( $instance['stats_tag']['views'] ) {
$total_views = sprintf(
_n('1 view', '%s views', intval($pageviews), 'wordpress-popular-posts'),
number_format_i18n(wpp_get_views($p->id), 2)
);
if ($instance['order_by'] == 'avg') {
$views_text = sprintf(
_n('1 view per day this week', '%s views per day this week', intval($pageviews), 'wordpress-popular-posts'),
number_format_i18n($pageviews, 2)
);
}
else {
$views_text = sprintf(
_n('1 view this week', '%s views this week', intval($pageviews), 'wordpress-popular-posts'),
number_format_i18n($pageviews)
);
}
$stats .= ($stats == "") ? "<span class=\"wpp-views\">{$total_views} (" . $views_text . ")</span>" : " | <span class=\"wpp-views\">{$total_views} (" . $views_text . ")</span>";
}
4. Save changes.
I have not tested this code, though. Let me know what happens.