Return to Snippet

Revision: 32480
at September 26, 2010 04:03 by fjarrett


Updated Code
<select name="taxonomy-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
	<option value="javascript:void(0)">Select</option>
	<?php dropdown_taxonomy_term('enter-taxonomy-name-here', 'orderby=name&order=asc&hide_empty=1&number=0'); ?>
</select>

Revision: 32479
at September 26, 2010 03:59 by fjarrett


Initial Code
<select name="speakers-filter" onchange="document.location.href=this.options[this.selectedIndex].value;">
	<option value="javascript:void(0)">Select</option>
	<?php dropdown_taxonomy_term('speakers', 'orderby=name&order=asc&hide_empty=1&number=0'); ?>
</select>

Initial URL
http://snipplr.com/view/41041/custom-taxonomy-terms-dropdown-function/

Initial Description
An example of how to call the dropdown taxonomy term function in the template.

Initial Title
Custom Taxonomy Terms Dropdown Template Tag

Initial Tags
wordpress

Initial Language
PHP