It creates a dropdown list of the categories rather than an un-ordered list.
you can pass an array of params, look in category-templates.php, line 163
so all of these are available, correct?
'show_option_all' => ''
'show_option_none' => ''
'orderby' => 'ID'
'order' => 'ASC'
'show_last_update' => 0
'show_count' => 0
'hide_empty' => 1
'child_of' => 0
'exclude' => ''
'echo' => 1
'selected' => 0
'hierarchical' => 0
'name' => 'cat'
'class' => 'postform'
If someone has an example of using wp_dropdown_categories() in sidebar.php I’d really appreciate it!
Here is an example of what I implemented:
<form action="<?php bloginfo('url'); ?>" method="get">
<?php wp_dropdown_categories('orderby=name&include=1,13,24,17,16,26,15,22,23,25,21,20&hierarchical=1'); ?>
<input type="submit" name="submit" class="submit" value="View" />
</form>
anyone know how to make it auto submit on selected?
thanks,
nada
I’m still searching
I would like to know this as well… how to make the dropdown work without having to click a submit button…