UPDATE: Also removed some passing by reference in
foreach, that was unsupported in PHP4 too.
UPDATE: Due to recent complaints I removed the
try...catch block and now the plugin is PHP4-safe again.
Following a suggestion from Alex, I’ve updated the wordpress.com stats helper plugin to version 0.5. The main change is that you can filter items by type in most visited list.
The new version also comes with a new template function for most visited posts, using a more flexible argument passing method (via an array).
Here’s an usage example:
wpcomstats_most_visited($options = array ( 'posts' => 10, 'before' => '
The new version also comes with some fixes and improvements to data fetching from stats.wordpress.com.