WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WordPress.com Stats Helper

This plugin helps you retrieve data from wordpress.com stats and put it on your blog.

This section describes how to install the plugin and get it working.

  1. Upload wpcomstats-helper.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

For most visited posts/pages list:

  • Use Most Visited Posts widget in one of you sidebars, or...
  • Place <?php if (function_exists('wpcomstats_most_visited')) { wpcomstats_most_visited($options); } ?> in your templates, or...
  • Place <?php if (function_exists('wpcomstats_most_visited_posts')) { wpcomstats_most_visited_posts($posts, $before, $after, $show_count, $days); } ?> in your templates

For blog visits:

  • Use Blog Visits widget in one of your sidebars, or...
  • Place <?php if (function_exists('wpcomstats_visits')) wpcomstats_visits($before, $after, $post_id, $days);?> in your template

Where:

  • $options - an array which can contain the following key - value pairs:

    posts, before, after, show_count, days - as bellow

    show - use 'posts' to show only posts and 'pages' to show only pages

  • $posts - number of posts to display

  • $before, $after - text/HTML to append before/after each generated text/HTML
  • $show_count - whether to also diplay a count of each post views
  • $post_id - the ID of the post/page for which you want view stats (use null to show for all posts/pages)
  • $days - the number of days for which the stats should be calculated. Valid values are: 0 (all), 1 (today), 7 (week), 30 (month)

Requires: 2.1 or higher
Compatible up to: 2.6.2
Last Updated: 2008-11-15
Downloads: 15,736

Ratings

4 stars
4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,3,3
100,1,1
100,1,1
50,2,1
0,1,0
100,1,1