Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function get_terms_dropdown($taxonomies, $args){
  2. $myterms = get_terms($taxonomies, $args);
  3. $output ="<select>";
  4. foreach($myterms as $term){
  5. $term_taxonomy=$term->Categories;
  6. $term_slug=$term->slug;
  7. $term_name =$term->name;
  8. $link = $term_slug;
  9. $output .="<option value='".$link."'>".$term_name."</option>";
  10. }
  11. $output .="</select>";
  12. return $output;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement