Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   creating a drop down for archives? (http://forum.bytesforall.com/showthread.php?t=596)

pltrace Mar 1, 2009 11:37 AM

creating a drop down for archives?
 
I was able to find code to make the archives a drop-down menu, but now I am not sure where to put it.

Here is the code:

<select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'>
<option value=""><?php echo attribute_escape(__('Select Month')); ?></option>
<?php wp_get_archives('type=monthly&format=option&show_p ost_count=1'); ?> </select>



Thanks!!

Flynn Mar 1, 2009 03:57 PM

There is a checkbox option "Display as a drop down" inside the widget, you don't need that code

pltrace Mar 1, 2009 05:55 PM

:| oops, sorry you had to take the time to show me that. thanks for your help though!


All times are GMT -6. The time now is 04:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.