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.
wpcomstats-helper.php to the /wp-content/plugins/ directoryFor most visited posts/pages list:
<?php if (function_exists('wpcomstats_most_visited')) { wpcomstats_most_visited($options); } ?> in your templates, or...<?php if (function_exists('wpcomstats_most_visited_posts')) { wpcomstats_most_visited_posts($posts, $before, $after, $show_count, $days); } ?> in your templatesFor blog visits:
<?php if (function_exists('wpcomstats_visits')) wpcomstats_visits($before, $after, $post_id, $days);?> in your templateWhere:
$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: 14,909
Got something to say? Need help?