Support » How-To and Troubleshooting » dropdown jump menu with categories?
7 years ago
I’ve found some code that’s working to make a dropdown jump menu for the monthly archives, but can’t seem to get it to work for categories. Here’s what I’m using:
echo "<select name='archive-dropdown3' onChange='document.location.href=this.options[this.selectedIndex].value;'>
echo attribute_escape(__('Browse by Month'));
I’ve tried wp_list_categories, and the_category, but can’t get either to work with the above code. Any ideas?
Thanks esmi–I tried that, but it just gives me a static dropdown. I’m trying to make it a jump menu.
Also, how do I give it a title that appears in the bar, like the code above does with “Browse by Month”?
bump: Anyone have an idea here? I’d be grateful for any help, thanks!