Title: WordPress.com Stats Plugin Widget Display, View Count Wrong?
Last modified: August 20, 2016

---

# WordPress.com Stats Plugin Widget Display, View Count Wrong?

 *  [aparentdesign](https://wordpress.org/support/users/aparentdesign/)
 * (@aparentdesign)
 * [15 years ago](https://wordpress.org/support/topic/wordpresscom-stats-plugin-widget-display-view-count-wrong/)
 * Hi there, I’m using this variation on the WordPress Stats Widget script, in a
   tabbed widget using shortcodes:
 * [http://wordpress.org/support/topic/stats-plugin-excluding-homepage-from-stats_get_csv-results?replies=9](http://wordpress.org/support/topic/stats-plugin-excluding-homepage-from-stats_get_csv-results?replies=9)
 * [php]
    if ( function_exists(‘get_stats_exclude_home’) && $top_posts = get_stats_exclude_home(
   7,5) ) : ?>
    -  <?php foreach ( $top_posts as $p ) : ?>
    -  (<?php echo $p[‘views’]; ?> views)
    -  <?php endforeach; ?>
 * <?php endif
    [/php]
 * It works great at filtering out the home page, but my users have noted that the
   stats it displays don’t match what shows on the dashboard. Article A will show
   800 views in the dashboard, but only 780 in the widget, etc.
 * This may not be a problem with the script, but a cache issue, but why would the
   dashboard be up to date and the csv not be?
 * Any idea why?

Viewing 1 replies (of 1 total)

 *  Thread Starter [aparentdesign](https://wordpress.org/support/users/aparentdesign/)
 * (@aparentdesign)
 * [15 years ago](https://wordpress.org/support/topic/wordpresscom-stats-plugin-widget-display-view-count-wrong/#post-2084664)
 * My client decided to just take out the numbers and list all history. However,
   now that doesn’t line up. The stats admin area lists the top 5 articles of all
   time but the widget does not pull in the same list.
 * Why does the data not match up? I’m using -1 in the time parameter to bring in
   all time data.

Viewing 1 replies (of 1 total)

The topic ‘WordPress.com Stats Plugin Widget Display, View Count Wrong?’ is closed
to new replies.

## Tags

 * [Stats](https://wordpress.org/support/topic-tag/stats/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)
 * [Wordpress.com-stats plugin](https://wordpress.org/support/topic-tag/wordpress-com-stats-plugin/)

 * 1 reply
 * 1 participant
 * Last reply from: [aparentdesign](https://wordpress.org/support/users/aparentdesign/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/wordpresscom-stats-plugin-widget-display-view-count-wrong/#post-2084664)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
