Creating Drop Down Lists - Wordpress Archives

Easily add drop down lists to your sidebar for your Archives Lists in Wordpress by using the code below. You will of course want to remove the existing Archives list coding from your sidebar.php after adding this code to replace it.

A Drop Down List Example


Archives List for Wordpress - Copy/Paste below code into your sidebar.php file

<form id="archiveform" action="">
<select name="archive_chrono" onchange="window.location =
(document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
<option value=''>Archives List</option>
<?php get_archives('monthly','','option'); ?>
</select>
</form>

I hope you found this info useful! Drop me a comment! For the Blogger version click here…

Technorati tags: , , , ,

Leave a Reply