Hello.
I'm displaying all my navigation using dropdowns as shown here:
<form action="<?php bloginfo('url'); ?>/" method="get">
<div>
<?php $select = wp_dropdown_categories('show_option_none=Categories&show_count=0&orderby=name&echo=0');
$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);echo $select; ?>
<noscript><div><input type="submit" value="View" /></div></noscript>
</div></form>
<select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'>
<option value=""><?php echo attribute_escape(__('Date')); ?></option><?php wp_get_archives('type=monthly&format=option&show_post_count=0'); ?> </select>
<form action="<?php bloginfo('url'); ?>/" method="get"><div>
<?php $select = wp_dropdown_pages('show_option_none=Navigation&selected=Navigation&echo=0');
$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
echo $select;
?>
<noscript><div><input type="submit" value="View" /></div></noscript></div></form>
What I want to do is to have a link within each dropdown that onclick will take you to either all-categories, all-pages or all-archives pages. So far it works in the Category dropdown (clicking the Category label returns posts from all categories). Is there a way I could make it work in the other dropdowns?
Thanks for your help!