logo
Header graphic 8 of 9

Read more

How to install my sane archive drop-down plug-in

Installing the plug-in is very easy, but to use it, your Wordpress theme must support sidebar widgets! You can verify that by looking in your administration interface under "Presentation" -> "Widgets". If this menu item exists, your theme probably supports widgets. After verifying that it does, continue by:

  1. Downloading the plug-in

    Download it or take a look at its source code.

  2. Unzip the PHP file into your plugins folder
  3. That's it! A new widget called "Sane Archives" should show up under "Available Widgets" in your administration interface.

Please note that the only difference between this widget and the standard "Archives"-widget is that mine renders a more accessible <select>-box if you check the "Display as a drop down" option in its configuration options.

For the more technically inclined: the plug-in adds a template_redirect action callback to determine if the form was submitted and then redirects the client only and only if the specified target URL starts with get_option('siteurl'). So it should be reasonably secure to deploy this plug-in. Enjoy.