Forum Replies Created

Viewing 1 replies (of 1 total)
  • asdfqwer

    I see you fixed the your problem! How did you do it? I’m having the same issue with wp_dropdown_categories. WordPress doesn’t redirect to the pretty link, the url is just ?cat=31..
    PS: this is a custom theme in progress running on my pc. Tried the TwentyEleven theme, same issue

    Here is the snippet I use:

    <form action="<?php bloginfo('url'); ?>/" method="get">
    	<div>
    		<?php
    			$select = wp_dropdown_categories('show_option_none=Select Category&orderby=name&echo=0&hide_empty=0&hierarchical=1');
    			$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>
Viewing 1 replies (of 1 total)