Posted By

fjarrett on 09/26/10


Tagged

wordpress


Versions (?)

Custom Taxonomy Terms Dropdown Template Tag


 / Published in: PHP
 

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

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

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

Report this snippet  

You need to login to post a comment.