Default permalink displays when selecting from dropdown
Hi,
Can anyone help with this please. I've created a dropdown menu to display child_of category results.
The actual page and results display without any problems. The issue is that the URL is returning the default permalink i.e.
www.mydoman.co.uk/?cat=899
and not
www.mydomain.co.uk/category/sub-category/
The strange thing is that if I click on the category link in the breadcrumbs I am given the pretty permalink.
Here is the code for the dropdown menu:
<form action="<?php bloginfo('url'); ?>/" method="get" id="searchform" class="form_search">
<?php $select = wp_dropdown_categories('show_option_all=Select a Category&selected=0&show_count=0&orderby=name&echo =0&class=searchbrands&child_of=898');
$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
echo $select;
?>
<noscript><input type="submit" value="View" /></noscript>
</form>
Any ideas why this would happen?
Many thanks