Simple Counter Plugin

Posted 2009.07.15 10.12 in Computers/Internet/Technology by Stephanie

A while or two ago, I mentioned I was working on a counter plugin for WordPress. I still haven’t written the documentation, but seeing as that’s not going to happen any time soon I figured I ought to publish what I have so far, and worry about documenting it later.

The specs are all in the previous post (linked above). You can download the file here: SimpleCounter for WordPress.

Here are two examples of how it can look, as the style is entirely controlled via css:

Screen 1 Sample Screenshot

And here is a screenshot of the settings screen (click to enlarge):

Settings Screen

The plugin provides a widget, and it also lets you place a counter on subsequent pages… this is where the documentation is really necessary, I’m afraid. It’s coming though, someday, soon, I promise…

To install, just unzip the file and put the php file into your plugins directory. Activate the plugins, then you can access the settings screen through Settings -> Simple Counter. To place the widget in  your sidebar, just go to Appearance -> Widgets and drag the widget where you want it to appear.

The plugin is tested and compatible with WordPress versions 2.7 through 2.8.1


  1. Stephanie says:

    Update – tested and working through to WordPress 2.9.1 now.

  2. James says:


    Seems like a great simple plugin. However, I have a problem with adding things to my sidebar. If I add any widgets it goes all screwey. Is there a way to add this to the footer with a short code?



  3. Stephanie says:

    Hi James,

    That’s wierd about it messing up your sidebar, I’ll have to review it and see what’s going wrong.

    You can add it to the footer, with a little bit of php:

    < ?php if (function_exists('simpleCounter')) simpleCounter(); ?>


    (remove the space between the < and the ? where the php start tag is... wordpress inserts that for display purposes, otherwise it'd try and run the php code.)

Leave a Comment