This code for wp_dropdown_categories does not work properly in my sidebar. What am I doing wrong, or is this template tag crazy?
<form action="" method="get">
<?php wp_dropdown_categories('show_option_all&show_count=1&selected=3'); ?>
<input type="submit" name="submit" value="Go" />
</form>
It only works when I'm on the home-page. The problem is on a Post or Archive or Category page, if I use the Dropdown to navigate to another category, it goes to the wrong URI. It just appends ?cat=4&submit=Go to the end of the permalink.
For example,
http://mysite.com/wordpress/category/post-name/?cat=4&submit=Go
That doesn't send you to Category 4, it just sends you back to the Post.