Stats Helper Plugin 0.5: Filtering by type (post/page)

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' => '
  • ', 'after' => '
  • ', 'show_count' => false, 'days' => 30, 'show' => posts ));

    The new version also comes with some fixes and improvements to data fetching from stats.wordpress.com.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>