/ Published in: PHP
An example of how to call the dropdown taxonomy term function in the template.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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>
URL: http://snipplr.com/view/41041/custom-taxonomy-terms-dropdown-function/