you are here: codestackercodes [RSS]wordpress categories dropdown

wordpress categories dropdown

<!-- old way -->
<?php wp_list_categories('orderby=name&exclude=1&title_li='); ?>

<!-- dropdown -->
<select onchange='document.location.href=this.options[this.selectedIndex].value;'>
	<option><?php echo attribute_escape(__('Select Month')); ?></option>
<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?>
</select>

Comments