It’s strange, my archives drop-down box has suddenly stopped working. All it outputs now is just “by Month” inside the box and I don’t believe I’ve changed anything in WordPress. I haven’t added any new plugins…
Here’s my code:
In the header for the drop down box:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
In the menu:
<li><form name="monthlyarchives" style="margin: 2px 0 2px 0px;">
<select name="menu" onChange="MM_jumpMenu('parent',this,0)">
<option selected value="">By Month</option>
<?php get_archives('','','option', 1,'','','','true'); ?>
</select>
</form></li>
Also, my categories drop down box is fine and it uses the exact same setup, only categories instead of archives, of course. And the archives work in my archives.php as a list, not a dropdown box.