July 26, 2009

Wordpress Charted Archives Plugin

His thought process -as he wrote in ‘Now With Navigation and Charted Archives‘- was that someone new to the site could see the graph and very easily get a feel for the frequency of his posting and I liked it a lot. I have seen similar features before, but not linked to the archives nor executed as beautifully as his. This is why I decided to make it a plugin.

I’ve got it live in my sidebar now, but as it may not be there for ever, this is how it looks.
Charted Archives
If you like it just download the plugin. Install the plugin and you can use it in three ways:

  1. As a widget: go to Themes > Widgets to add the widget to your sidebar. Add the number of months to display in the widget properties, it defaults to zeven.
  2. As a php tag in a template: <?php Charted_Archives($number_of_months_to_show) ?>
  3. Or use a shortcode in a page. [chartedarchive months=”12″] (where 12 can be any number of months).
Update: there was an error in the CSS link which is now corrected. The download link above reflects the new version.

Update 2: I added a shortcode for easier use in pages.

7 trackbacks

  1. [...] 支持在指定的时间内更改主题。假如你希望在五天之内或更长时间为博客自动添加圣诞节主题,它都会为你自动完成。Charted Archives [...]

9 comments

  1. Greg says:

    Is there a way to insert in the page using a tag?

  2. Martijn Stegink says:

    Yes, just use < ?php Charted_Archives(number_of_results); ?>

  3. Solomon says:

    A shortcode for this plugin would be really cool!

  4. Martijn Stegink says:

    Good suggestion, thanks. New version is up now.

  5. Mathias says:

    Hi. Nice idea, but unfortunately the plugin does not output anything on my WP 2.8.2 blog. Example: the output from the widget:

    <li id="charted_archives-3" class="widgetcontainer widget_charted_archives">
        <h3 class="widgettitle">Charted Archives</h3>
        <ul id="archive_bar_graph"></ul><br style="clear: both" />
    </li>
  6. Martijn Stegink says:

    That was a non-standard table prefix issue. Thanks for helping me figure that out Mathias! Corrected version (1.3) is out for download now. Don’t forget to rate it.

  7. Simon says:

    Is there a simple way to exclude posts from a particular category?

  8. Tocki says:

    man, I just found this plugin and it blows me away! I need to put it on my blog. Thanks a lot for sharing!

  9. michael says:

    I was curious how you would define the bars to be a specific percentage in height. How is that value defined? It’s either super short or super long.

    Any feedback would be much appreciated.

    Thanks.

Post a comment

Your e-mail is never shared, required fields marked with *

Subscribe to this posts comments RSS feed