Custom Taxonomy Terms Dropdown Template Tag

/ Published in: PHP
Save to your folder(s)

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

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.